-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy-colors.el
30 lines (22 loc) · 924 Bytes
/
my-colors.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;; Turn on pretty font colors
(global-font-lock-mode t)
(setq font-lock-maximum-decoration 3)
(require 'color-theme-sanityinc-solarized)
(global-set-key (kbd "<f12>") 'color-theme-sanityinc-solarized-dark)
(global-set-key (kbd "<M-f12>") 'color-theme-sanityinc-solarized-light)
(color-theme-sanityinc-solarized-dark)
;; hl-line: highlight the current line
;; (when (fboundp 'global-hl-line-mode)
;; (global-hl-line-mode t))
;; turn it on for all modes by default
(require 'ansi-color)
(defun colorize-compilation-buffer ()
(toggle-read-only)
(ansi-color-apply-on-region (point-min) (point-max))
(toggle-read-only))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
(set-face-foreground font-lock-comment-face "OrangeRed3")
(set-face-foreground font-lock-comment-delimiter-face "OrangeRed4")
(set-face-foreground font-lock-doc-face "OrangeRed3")
(provide 'my-colors)
;;; my-colors.el ends here