-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
267 lines (208 loc) · 10.2 KB
/
.emacs
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
(require 'package)
(add-to-list 'package-archives
'("org" . "https://orgmode.org/elpa/"))
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/"))
(setq package-archive-priorities
'(("melpa-stable" . 1)
("melpa" . 0)))
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
;; custom-set-variables 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.
'(ansi-color-names-vector
["#10151C" "#D95468" "#8BD49C" "#EBBF83" "#5EC4FF" "#E27E8D" "#70E1E8" "#9CAABB"])
'(ansi-term-color-vector
[unspecified "#1b1918" "#f22c40" "#7b9726" "#c38418" "#407ee7" "#6666ea" "#407ee7" "#a8a19f"])
'(custom-enabled-themes nil)
'(custom-safe-themes
(quote
("67aec91de254d44ac115e03d0ef16377101f37b0740deff73fcfa9c242e8d512" "3a3de615f80a0e8706208f0a71bbcc7cc3816988f971b6d237223b6731f91605" "1c082c9b84449e54af757bcae23617d11f563fc9f33a832a8a2813c4d7dfb652" "151bde695af0b0e69c3846500f58d9a0ca8cb2d447da68d7fbf4154dcf818ebc" "d1b4990bd599f5e2186c3f75769a2c5334063e9e541e37514942c27975700370" "f0dc4ddca147f3c7b1c7397141b888562a48d9888f1595d69572db73be99a024" "2296db63b1de14e65390d0ded8e2b5df4b9e4186f3251af56807026542a58201" "ecba61c2239fbef776a72b65295b88e5534e458dfe3e6d7d9f9cb353448a569e" "6b289bab28a7e511f9c54496be647dc60f5bd8f9917c9495978762b99d8c96a0" "aea30125ef2e48831f46695418677b9d676c3babf43959c8e978c0ad672a7329" "36746ad57649893434c443567cb3831828df33232a7790d232df6f5908263692" "78c1c89192e172436dbf892bd90562bc89e2cc3811b5f9506226e735a953a9c6" "5a7830712d709a4fc128a7998b7fa963f37e960fd2e8aa75c76f692b36e6cf3c" "0961d780bd14561c505986166d167606239af3e2c3117265c9377e9b8204bf96" "fc7fd2530b82a722ceb5b211f9e732d15ad41d5306c011253a0ba43aaf93dccc" "cd736a63aa586be066d5a1f0e51179239fe70e16a9f18991f6f5d99732cabb32" "b54826e5d9978d59f9e0a169bbd4739dd927eead3ef65f56786621b53c031a7c" "6b2636879127bf6124ce541b1b2824800afc49c6ccd65439d6eb987dbf200c36" "356e5cbe0874b444263f3e1f9fffd4ae4c82c1b07fe085ba26e2a6d332db34dd" "4697a2d4afca3f5ed4fdf5f715e36a6cac5c6154e105f3596b44a4874ae52c45" "b35a14c7d94c1f411890d45edfb9dc1bd61c5becd5c326790b51df6ebf60f402" "93a0885d5f46d2aeac12bf6be1754faa7d5e28b27926b8aa812840fe7d0b7983" "a3fa4abaf08cc169b61dea8f6df1bbe4123ec1d2afeb01c17e11fdc31fc66379" "fe666e5ac37c2dfcf80074e88b9252c71a22b6f5d2f566df9a7aa4f9bea55ef8" "d2e9c7e31e574bf38f4b0fb927aaff20c1e5f92f72001102758005e53d77b8c9" "dd6c7448c792039500e912fb332f979ad4b3a9c224d018cbe1e676fe6fa9e47c" default)))
'(fci-rule-color "#56697A")
'(frame-background-mode (quote dark))
'(jdee-db-active-breakpoint-face-colors (cons "#10151C" "#5EC4FF"))
'(jdee-db-requested-breakpoint-face-colors (cons "#10151C" "#8BD49C"))
'(jdee-db-spec-breakpoint-face-colors (cons "#10151C" "#384551"))
'(org-agenda-files (quote ("~/Work/1.org")))
'(package-selected-packages
(quote
(seoul256-theme use-package doom-modeline markdown-mode rainbow-delimiters slime-company slime org-trello lua-mode ess doom-themes)))
'(vc-annotate-background "#1D252C")
'(vc-annotate-color-map
(list
(cons 20 "#8BD49C")
(cons 40 "#abcd93")
(cons 60 "#cbc68b")
(cons 80 "#EBBF83")
(cons 100 "#e5ae6f")
(cons 120 "#df9e5b")
(cons 140 "#D98E48")
(cons 160 "#dc885f")
(cons 180 "#df8376")
(cons 200 "#E27E8D")
(cons 220 "#df7080")
(cons 240 "#dc6274")
(cons 260 "#D95468")
(cons 280 "#b05062")
(cons 300 "#884c5c")
(cons 320 "#604856")
(cons 340 "#56697A")
(cons 360 "#56697A")))
'(vc-annotate-very-old-color nil))
(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.
)
;; This is only needed once, near the top of the file
(eval-when-compile
;; Following line is not needed if use-package.el is in ~/.emacs.d
;; (add-to-list 'load-path "<path where use-package is installed>")
(require 'use-package))
(add-hook 'after-init-hook 'global-company-mode)
;;(load-theme 'doom-nova t)
;;(use-package tomorrow-night-blue-theme
;; :load-path "~/Downloads/themes
;; :load-theme tomorrow-night-blue-theme.el)
;;; light variants
;; Range: 252 (darkest) ~ 256 (lightest)
;; Default: 253
(setq seoul256-background 256)
(load-theme 'seoul256 t)
;; SLIME AND STUFF RELATED TO STUMPWM
;;(setq inferior-lisp-program "sbcl")
;;(slime-setup '(slime-company)
;; '(global-company-mode))
;;)
;;(load (expand-file-name "~/quicklisp/slime-helper.el"))
;; Set text-mode as default - I dont think it's a good idea
;; (setq-default major-mode 'text-mode)
;; Enable eldoc-mode with lisp-mode
(add-hook 'emacs-lisp-mode-hook 'eldoc-mode)
;; Org-mode customizations
;; disable splash
;;(setq inhibit-splash-screen t)
;; Enable transient mark mode
(transient-mark-mode 1)
;;;;Org mode configuration
;; Enable Org mode
(require 'org)
(setq org-todo-keywords
'((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))
;; Make Org mode work with files ending in .org
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
;; The above is the default in recent emacsen
;; set org-mode to start with some customizations
;; calls defined org-mode-hook; see above text mode
(defun my-org-mode-hook ()
(setq fill-column 100)
(auto-fill-mode t))
(add-hook 'org-mode-hook 'flyspell-mode)
(add-hook 'org-mode-hook 'org-mode-hook 'my-org-mode-hook)
;; Bind meta to left super key
(setq x-super-keysym 'meta)
;; Remove unnecessary BS from the GUI
(menu-bar-mode -1)
;; (toggle-scroll-bar -1)
(tool-bar-mode -1)
;; setting the font
;;(add-to-list 'default-frame-alist '(font . "Iosevka Term-8:weight=medium"))
(set-frame-font "Iosevka Term:weight=medium:size=10")
(setq default-frame-alist nil)
(require 'font-lock)
;;(require '/home/ossifrage/.emacs.d/font-lock+.el)
(use-package all-the-icons)
(setq all-the-icons-dired-mode t)
;; Don’t compact font caches during GC.
(setq inhibit-compacting-font-caches t)
;; Use doom-mode-line by default
;; Doom Mode-line
(use-package doom-modeline
:ensure t
:hook (after-init . doom-modeline-mode))
;; How tall the mode-line should be. It's only respected in GUI.
;; If the actual char height is larger, it respects the actual height.
(setq doom-modeline-height 25)
;; How wide the mode-line bar should be. It's only respected in GUI.
(setq doom-modeline-bar-width 3)
;; Determines the style used by `doom-modeline-buffer-file-name'.
;;
;; Given ~/Projects/FOSS/emacs/lisp/comint.el
;; truncate-upto-project => ~/P/F/emacs/lisp/comint.el
;; truncate-from-project => ~/Projects/FOSS/emacs/l/comint.el
;; truncate-with-project => emacs/l/comint.el
;; truncate-except-project => ~/P/F/emacs/l/comint.el
;; truncate-upto-root => ~/P/F/e/lisp/comint.el
;; truncate-all => ~/P/F/e/l/comint.el
;; relative-from-project => emacs/lisp/comint.el
;; relative-to-project => lisp/comint.el
;; file-name => comint.el
;; buffer-name => comint.el<2> (uniquify buffer name)
;;
;; If you are expereicing the laggy issue, especially while editing remote files
;; with tramp, please try `file-name' style.
;; Please refer to https://github.com/bbatsov/projectile/issues/657.
(setq doom-modeline-buffer-file-name-style 'truncate-upto-project)
;; Whether display icons in mode-line or not.
(setq doom-modeline-icon t)
;; Whether display the icon for major mode. It respects `doom-modeline-icon'.
(setq doom-modeline-major-mode-icon t)
;; Whether display color icons for `major-mode'. It respects
;; `doom-modeline-icon' and `all-the-icons-color-icons'.
(setq doom-modeline-major-mode-color-icon t)
;; Whether display icons for buffer states. It respects `doom-modeline-icon'.
(setq doom-modeline-buffer-state-icon t)
;; Whether display buffer modification icon. It respects `doom-modeline-icon'
;; and `doom-modeline-buffer-state-icon'.
(setq doom-modeline-buffer-modification-icon t)
;; Whether display minor modes in mode-line or not.
(setq doom-modeline-minor-modes t)
;; If non-nil, a word count will be added to the selection-info modeline segment.
(setq doom-modeline-enable-word-count t)
;; Whether display buffer encoding.
(setq doom-modeline-buffer-encoding t)
;; Whether display indentation information.
(setq doom-modeline-indent-info nil)
;; If non-nil, only display one number for checker information if applicable.
(setq doom-modeline-checker-simple-format t)
;; The maximum displayed length of the branch name of version control.
(setq doom-modeline-vcs-max-length 12)
;; Whether display perspective name or not. Non-nil to display in mode-line.
(setq doom-modeline-persp-name t)
;; Whether display `lsp' state or not. Non-nil to display in mode-line.
(setq doom-modeline-lsp t)
;; Whether display github notifications or not. Requires `ghub` package.
(setq doom-modeline-github nil)
;; The interval of checking github.
(setq doom-modeline-github-interval (* 30 60))
;; Whether display environment version or not
(setq doom-modeline-env-version t)
;; Or for individual languages
(setq doom-modeline-env-enable-python t)
(setq doom-modeline-env-enable-ruby t)
(setq doom-modeline-env-enable-perl t)
(setq doom-modeline-env-enable-go t)
(setq doom-modeline-env-enable-elixir t)
(setq doom-modeline-env-enable-rust t)
;; Change the executables to use for the language version string
(setq doom-modeline-env-python-executable "python")
(setq doom-modeline-env-ruby-executable "ruby")
(setq doom-modeline-env-perl-executable "perl")
(setq doom-modeline-env-go-executable "go")
(setq doom-modeline-env-elixir-executable "iex")
(setq doom-modeline-env-rust-executable "rustc")
;; Whether display mu4e notifications or not. Requires `mu4e-alert' package.
(setq doom-modeline-mu4e t)
;; Whether display irc notifications or not. Requires `circe' package.
(setq doom-modeline-irc t)
;; Function to stylize the irc buffer names.
(setq doom-modeline-irc-stylize 'identity)