forked from lest/emacs-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrc-gui.el
72 lines (59 loc) · 2.34 KB
/
rc-gui.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
;; color-theme
(add-to-list 'load-path (concat config-dir "vendor/color-theme"))
(require 'color-theme)
(color-theme-initialize)
;; theme like in emacs
(load (concat config-dir "vendor/color-theme-idle-fingers.el"))
(color-theme-idle-fingers)
;; some customizations for org-mode
(setq org-todo-keyword-faces
'(("TODO" . (:foreground "red" :weight bold))
("WAIT" . (:foreground "orange" :weight bold))
("DONE" . (:foreground "green" :weight bold)))
)
;; turn on column number mode
(column-number-mode t)
;; change font-size
(set-face-attribute 'default nil :height 120)
;; highlight brackets
(show-paren-mode t)
;; frame size
(defun maximize-frame ()
(interactive)
(set-frame-position (selected-frame) 0 0)
(set-frame-size (selected-frame) 1000 1000))
(maximize-frame)
(setq split-width-threshold nil)
;; remove splash screen
(setq inhibit-splash-screen t)
;; highlight current line
(global-hl-line-mode t)
;; light colors
;;(custom-set-faces
;; '(default ((t (:background "grey90" :foreground "black"))))
;; '(font-lock-comment-face ((((class color) (min-colors 88) (background light))
;; (:foreground "gray50"))))
;; '(org-hide ((((background light)) (:foreground "grey90")))))
;; TextMate idleFingers
;; (custom-set-faces
;; '(default ((t (:background "#282828" :foreground "#EEEEEE")))) ;#353535
;; '(region ((t (:background "#535B72")))) ;#656E87
;; '(highlight ((t (:background "#353637")))) ;#454647
;; '(font-lock-comment-face ((t (:foreground "#BC9458")))) ;#CEA564
;; '(font-lock-string-face ((t (:foreground "#A5C361")))) ;#ABD16A
;; '(font-lock-keyword-face ((t (:foreground "#DA802B")))) ;#E28833
;; '(font-lock-constant-face((t (:foreground "#6C99BC")))) ;#74AACA
;; '(font-lock-builtin-face ((t (:foreground "#6C99BC"))))
;; '(font-lock-type-face ((t (:foreground "#CCCC33")))) ;#D3D917
;; '(font-lock-function-name-face ((t (:foreground "#FFF980")))) ;#FEFD86
;; '(font-lock-variable-name-face ((t (:foreground "#B7DFF8")))) ;#BBE6FB
;; )
;; smooth scrolling
(setq redisplay-dont-pause t
scroll-margin 2
scroll-step 1
scroll-conservatively 10000
scroll-preserve-screen-position 1)
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time
(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling
(setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse