Skip to content

Instantly share code, notes, and snippets.

@zsombor
Last active August 29, 2015 14:22
Show Gist options
  • Save zsombor/9f684ea6c93a2dba6fb7 to your computer and use it in GitHub Desktop.
Save zsombor/9f684ea6c93a2dba6fb7 to your computer and use it in GitHub Desktop.
custom-set-faces
(define-key global-map [(f3)] 'next-error)
(define-key global-map [(f7)] 'ispell-region)
(define-key global-map [M-left] 'backward-sexp)
(define-key global-map [M-right] 'forward-sexp)
(show-paren-mode t)
(setq ediff-split-window-function 'split-window-horizontally)
(defun my-c-mode-common-hook ()
(c-toggle-auto-hungry-state 1)
(define-key c-mode-base-map (kbd "RET") 'newline-and-indent)
;;(define-key c-mode-base-map (kbd "C-c a") 'align-entire)
(define-key c-mode-base-map [M-up] 'beginning-of-defun)
(define-key c-mode-base-map [M-down] 'end-of-defun)
(define-key c-mode-base-map "\C-m" 'c-context-line-break)
;; (elide-head)
(flyspell-prog-mode))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(setq cua-enable-cursor-indications t)
(setq cua-normal-cursor-color "green")
(setq cua-overwrite-cursor-color "yellow")
(setq cua-read-only-cursor-color "red")
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 130 :width normal :foundry "apple" :family "Menlo"))))
'(about-headline-face ((((class color) (background light) (type mswindows)) (:foreground "green" :bold t))) t)
'(about-link-face ((((class color) (background light) (type mswindows)) (:foreground "#00ffff" :underline t))) t)
'(bold ((t (:weight bold))))
'(clearcase-dired-checkedout-face ((t (:foreground "red"))) t)
'(comint-highlight-input ((t (:foreground "lightyellow"))))
'(custom-comment-tag ((nil (:foreground "lightblue"))))
'(custom-documentation ((t (:foreground "lightgreen"))))
'(custom-face-tag ((t (:inherit variable-pitch :foreground "green" :weight bold :height 1.2))))
'(custom-group-tag ((((class color) (background light)) (:foreground "#00ffff" :bold t))))
'(custom-state ((((class color) (background light)) (:foreground "light green"))))
'(custom-variable-tag ((((class color) (background light)) (:foreground "#00ffff" :bold t))))
'(ecb-default-highlight-face ((((class color) (background light)) (:foreground "black" :background "orange"))) t)
'(ecb-directories-general-face ((((class color) (background light)) (:foreground "yellow"))) t)
'(ecb-method-face ((((class color) (background light)) (:foreground "black" :background "lightgreen"))) t)
'(ecb-source-in-directories-buffer-face ((((class color) (background light)) (:foreground "green"))) t)
'(ecb-tag-header-face ((((class color) (background light)) (:background "orange"))) t)
'(ecb-token-header-face ((((class color) (background light)) (:background "orange"))) t)
'(fixed-pitch ((t (:family "Bitstream Vera Sans Mono"))))
'(flymake-errline ((((class color)) (:background "DeepPink4" :underline "white"))))
'(flyspell-incorrect ((t (:inverse-video t :weight bold))))
'(font-lock-builtin-face ((((class color) (background dark)) (:foreground "DeepPink"))))
'(font-lock-comment-face ((((class color) (background dark)) (:foreground "#80a0ff"))))
'(font-lock-constant-face ((((class color) (background dark)) (:foreground "red"))))
'(font-lock-doc-string-face ((nil (:foreground "#80a0ff"))) t)
'(font-lock-function-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "DeepSkyBlue"))))
'(font-lock-keyword-face ((((class color) (background dark)) (:foreground "yellow"))))
'(font-lock-negation-char-face ((t (:foreground "red"))))
'(font-lock-preprocessor-face ((((class color) (background dark)) (:foreground "#ff80ff"))))
'(font-lock-string-face ((((class color) (background dark)) (:foreground "#ffa0a0"))))
'(font-lock-type-face ((((class color) (background dark)) (:foreground "green"))))
'(font-lock-variable-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "white"))))
'(font-lock-warning-face ((((class color) (min-colors 88) (background dark)) (:foreground "deepPink" :weight bold))))
'(highlight ((((class color) (min-colors 88) (background dark)) (:background "green" :foreground "black"))))
'(highline-face ((t (:background "blue"))) t)
'(hyper-apropos-documentation ((((class color) (background light)) (:foreground "light green"))) t)
'(hyper-apropos-hyperlink ((((class color) (background light)) (:foreground "#00ffff"))) t)
'(info-node ((t (:foreground "#00ffff" :bold t))))
'(info-xref ((t (:foreground "#00ffff" :bold t))))
'(isearch ((((class color) (min-colors 88) (background dark)) (:background "DeepPink" :foreground "black"))))
'(jde-java-font-lock-code-face ((t (:foreground "#80a0ff"))) t)
'(jde-java-font-lock-constant-face ((((class color) (background light)) (:foreground "RosyBrown"))) t)
'(jde-java-font-lock-doc-tag-face ((((class color) (background light)) (:foreground "green4"))) t)
'(jde-java-font-lock-link-face ((t (:foreground "#80a0ff"))) t)
'(jde-java-font-lock-operator-face ((((class color)) (:foreground "white"))) t)
'(jde-java-font-lock-package-face ((((class color) (background light)) (:foreground "white"))) t)
'(jde-java-font-lock-pre-face ((t (:foreground "#80a0ff"))) t)
'(js2-builtin-face ((t (:foreground "deeppink"))) t)
'(js2-comment-face ((t (:foreground "#80a0ff"))) t)
'(js2-constant-face ((t (:foreground "red"))) t)
'(js2-error-face ((((class color) (background dark)) (:background "red" :foreground "black"))) t)
'(js2-function-name-face ((t (:foreground "LawnGreen"))) t)
'(js2-function-param-face ((t (:foreground "lawngreen"))) t)
'(js2-keyword-face ((t (:foreground "yellow"))) t)
'(js2-regexp-face ((t (:foreground "#ffa0a0"))) t)
'(js2-string-face ((t (:foreground "#ffa0a0"))) t)
'(js2-type-face ((t (:foreground "green"))) t)
'(js2-variable-name-face ((t nil)) t)
'(js2-warning-face ((((class color) (background dark)) (:background "orange" :foreground "black" :underline "orange"))) t)
'(lazy-highlight ((((class color) (min-colors 88) (background dark)) (:background "gold1" :foreground "black"))))
'(menu ((((type x-toolkit)) (:weight normal :height 85 :width condensed :family "helvetica"))))
'(mmm-code-submode-face ((t (:background "Gray30" :foreground "green"))) t)
'(mmm-declaration-submode-face ((t (:background "gray40"))) t)
'(mmm-default-submode-face ((t (:background "gray42"))) t)
'(mode-line ((t (:background "firebrick4" :foreground "gray70" :box (:line-width -1 :style released-button)))))
'(mode-line-buffer-id ((t (:foreground "white" :weight bold))))
'(mode-line-highlight ((((class color) (min-colors 88)) (:inverse-video t))))
'(mode-line-inactive ((t (:background "#610000" :foreground "gray70" :box (:line-width -1 :color "brown" :style released-button) :weight light))))
'(mumamo-background-chunk-major ((((class color) (min-colors 88) (background dark)) (:background "black"))))
'(mumamo-background-chunk-submode ((((class color) (min-colors 88) (background dark)) (:background "gray28"))) t)
'(mumamo-background-chunk-submode1 ((((class color) (min-colors 88) (background dark)) (:background "gray28"))))
'(mumamo-background-chunk-submode2 ((((class color) (min-colors 88) (background dark)) (:background "gray28"))))
'(mumamo-border-face ((t (:foreground "maroon2"))) t)
'(mumamo-border-face-in ((t (:inherit font-lock-preprocessor-face))))
'(mumamo-border-face-out ((t (:inherit font-lock-preprocessor-face))))
'(nxml-glyph ((t (:background "light grey" :foreground "black" :slant normal :weight normal :family "Monospace"))))
'(paren-face-match ((((class color)) (:background "green"))) t)
'(paren-face-mismatch ((((class color)) (:foreground "white" :background "red"))) t)
'(paren-face-no-match ((((class color)) (:foreground "white" :background "red"))) t)
'(region ((((class color) (min-colors 88) (background dark)) (:background "SlateGray4" :foreground "white"))))
'(show-paren-match ((((class color) (background dark)) (:background "steelblue3" :foreground "yellow"))))
'(show-paren-mismatch ((((class color)) (:background "red" :foreground "white"))))
'(speedbar-directory-face ((nil (:foreground "yellow"))))
'(speedbar-file-face ((((class color) (background light)) (:foreground "white"))))
'(speedbar-highlight-face ((nil (:background "green" :foreground "black"))))
'(speedbar-tag-face ((((class color) (background light)) (:foreground "white"))))
'(svn-status-directory-face ((((class color) (background dark)) (:foreground "yellow"))))
'(svn-status-marked-face ((((class color) (background dark)) (:background "green" :foreground "black"))))
'(svn-status-marked-popup-face ((((class color) (background dark)) (:background "gray" :foreground "palegreen2"))))
'(svn-status-update-available-face ((((class color) (background dark)) (:foreground "lightskyblue"))))
'(tooltip ((t (:inherit variable-pitch :background "#fefdc2" :foreground "black" :weight normal :height 0.95 :family "Dejavu Sans"))))
'(variable-pitch ((t (:family "Bitstream Vera Sans"))))
'(zmacs-region ((t (:foreground "white" :background "gray65"))) t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment