Various changes that I can't recall anymore
- Author
- Maarten 'Vngngdn' Vangeneugden
- Date
- Aug. 16, 2017, 8:54 p.m.
- Hash
- e3fcee38a97aac7efb9bbf9056bdbab211d11287
- Parent
- 328d96a770c26cae058900e7a1eb2af5aea7c37a
- Modified files
- .spacemacs
- i3/config
- polybar/config
.spacemacs ¶
297 additions and 81 deletions.
View changes Hide changes
1 |
1 |
;; This file is loaded by Spacemacs at startup. |
2 |
2 |
;; It must be stored in your home directory. |
3 |
3 |
|
+ |
4 |
(setq is-linuxp (eq system-type 'gnu/linux)) |
+ |
5 |
(defun os-path (x) (if is-linuxp x (expand-file-name x "c:"))) |
+ |
6 |
|
+ |
7 |
;;;; Core |
+ |
8 |
|
+ |
9 |
(defvar dotspacemacs/layers/core |
+ |
10 |
'( |
+ |
11 |
git |
+ |
12 |
(org :variables |
+ |
13 |
org-agenda-files '( |
+ |
14 |
"~/University/" |
+ |
15 |
"~/Repositories/private/org/" |
+ |
16 |
"~/University/COMPN/")) |
+ |
17 |
syntax-checking |
+ |
18 |
(auto-completion :variables |
+ |
19 |
auto-completion-return-key-behavior 'nil |
+ |
20 |
auto-completion-tab-key-behavior 'cycle |
+ |
21 |
auto-completion-enable-snippets-in-popup t |
+ |
22 |
auto-completion-complete-with-key-sequence-delay nil) |
+ |
23 |
helm |
+ |
24 |
;(shell :variables |
+ |
25 |
; shell-default-shell 'eshell) |
+ |
26 |
(version-control :variables |
+ |
27 |
version-control-global-margin t |
+ |
28 |
version-control-diff-tool 'git-gutter+) |
+ |
29 |
) |
+ |
30 |
"Layers I consider core to Spacemacs") |
+ |
31 |
|
+ |
32 |
;; Langs |
+ |
33 |
|
+ |
34 |
(defvar dotspacemacs/layers/langs |
+ |
35 |
'(emacs-lisp |
+ |
36 |
html |
+ |
37 |
markdown |
+ |
38 |
csv |
+ |
39 |
yaml |
+ |
40 |
;rust |
+ |
41 |
(clojure :variables |
+ |
42 |
clojure-enable-fancify-symbols t) |
+ |
43 |
(haskell :variables |
+ |
44 |
haskell-completion-backend 'intero) |
+ |
45 |
(python :variables |
+ |
46 |
python-sort-imports-on-save t |
+ |
47 |
python-test-runner 'pytest) |
+ |
48 |
) |
+ |
49 |
"Programming and markup language layers") |
+ |
50 |
|
+ |
51 |
;;;; Extra |
+ |
52 |
|
+ |
53 |
(defvar dotspacemacs/layers/extra |
+ |
54 |
'(gnus |
+ |
55 |
graphviz |
+ |
56 |
themes-megapack |
+ |
57 |
;; TODO: Needs configuration: http://spacemacs.org/layers/+themes/theming/README.html |
+ |
58 |
theming |
+ |
59 |
) |
+ |
60 |
"Miscellaneous layers") |
+ |
61 |
|
4 |
62 |
(defun dotspacemacs/layers () |
5 |
63 |
"Configuration Layers declaration. |
6 |
64 |
You should not put any user code in this function besides modifying the variable |
7 |
65 |
values." |
8 |
66 |
(setq-default |
9 |
67 |
;; Base distribution to use. This is a layer contained in the directory |
10 |
68 |
;; `+distribution'. For now available distributions are `spacemacs-base' |
11 |
69 |
;; or `spacemacs'. (default 'spacemacs) |
12 |
70 |
dotspacemacs-distribution 'spacemacs |
13 |
71 |
;; Lazy installation of layers (i.e. layers are installed only when a file |
14 |
72 |
;; with a supported type is opened). Possible values are `all', `unused' |
15 |
73 |
;; and `nil'. `unused' will lazy install only unused layers (i.e. layers |
16 |
- | ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will |
+ |
74 |
|
+ |
75 |
;; not listed in variable `dotspacemacs-configuration-layers'), `all' will |
17 |
76 |
;; lazy install any layer that support lazy installation even the layers |
18 |
- | ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy |
+ |
77 |
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy |
19 |
78 |
;; installation feature and you have to explicitly list a layer in the |
20 |
79 |
;; variable `dotspacemacs-configuration-layers' to install it. |
21 |
80 |
;; (default 'unused) |
22 |
81 |
dotspacemacs-enable-lazy-installation 'unused |
23 |
82 |
;; If non-nil then Spacemacs will ask for confirmation before installing |
24 |
83 |
;; a layer lazily. (default t) |
25 |
84 |
dotspacemacs-ask-for-lazy-installation t |
26 |
85 |
;; If non-nil layers with lazy install support are lazy installed. |
27 |
86 |
;; List of additional paths where to look for configuration layers. |
28 |
87 |
;; Paths must have a trailing slash (i.e. `~/.mycontribs/') |
29 |
88 |
dotspacemacs-configuration-layer-path '() |
30 |
- | ;; List of configuration layers to load. |
+ |
89 |
;; List of configuration layers to load. |
31 |
90 |
dotspacemacs-configuration-layers |
32 |
- | '( |
33 |
- | ;; ---------------------------------------------------------------- |
+ |
91 |
dotspacemacs/layers/core |
+ |
92 |
dotspacemacs/layers/langs |
+ |
93 |
dotspacemacs/layers/extra) |
+ |
94 |
;dotspacemacs-configuration-layers |
+ |
95 |
;'( |
+ |
96 |
; python |
+ |
97 |
;; ---------------------------------------------------------------- |
34 |
98 |
;; Example of useful layers you may want to use right away. |
35 |
99 |
;; Uncomment some layer names and press |
36 |
100 |
;; |
37 |
101 |
;; ---------------------------------------------------------------- |
38 |
102 |
helm |
39 |
- | auto-completion |
40 |
- | ;; better-defaults |
+ |
103 |
; auto-completion |
+ |
104 |
;; better-defaults |
41 |
105 |
emacs-lisp |
42 |
- | exec-path-from-shell |
43 |
- | git |
44 |
- | markdown |
45 |
- | org |
46 |
- | ;; (shell :variables |
+ |
106 |
; git |
+ |
107 |
; org |
+ |
108 |
;; (shell :variables |
47 |
109 |
;; shell-default-height 30 |
48 |
110 |
;; shell-default-position 'bottom) |
49 |
111 |
spell-checking |
50 |
- | syntax-checking |
51 |
- | version-control |
52 |
- | themes-megapack |
53 |
- | ;;rust ;; Disabled; causes a bug with exec-path-from-shell, which is disabled. |
54 |
- | (clojure :variables |
55 |
- | clojure-enable-fancify-symbols t) |
56 |
- | (haskell :variables |
57 |
- | haskell-completion-backend 'intero) |
58 |
- | (python :variables |
59 |
- | python-sort-imports-on-save t |
60 |
- | python-test-runner 'pytest) |
61 |
- | ) |
62 |
- | ;; List of additional packages that will be installed without being |
+ |
112 |
; syntax-checking |
+ |
113 |
; version-control |
+ |
114 |
; themes-megapack |
+ |
115 |
; ) |
+ |
116 |
;; List of additional packages that will be installed without being |
63 |
117 |
;; wrapped in a layer. If you need some configuration for these |
64 |
118 |
;; packages, then consider creating a layer. You can also put the |
65 |
119 |
;; configuration in `dotspacemacs/user-config'. |
66 |
120 |
dotspacemacs-additional-packages '(pretty-mode) |
67 |
- | ;; A list of packages that cannot be updated. |
+ |
121 |
markdown-mode |
+ |
122 |
(pretty-mode :location (recipe :fetcher github :repo "akatov/pretty-mode")) |
+ |
123 |
(prettify-utils :location (recipe :fetcher github :repo "Ilazki/prettify-utils.el")) |
+ |
124 |
) |
+ |
125 |
|
+ |
126 |
;; A list of packages that cannot be updated. |
68 |
127 |
dotspacemacs-frozen-packages '() |
69 |
128 |
;; A list of packages that will not be installed and loaded. |
70 |
129 |
dotspacemacs-excluded-packages '(exec-path-from-shell) |
71 |
- | ;; Defines the behaviour of Spacemacs when installing packages. |
+ |
130 |
smartparens |
+ |
131 |
exec-path-from-shell) |
+ |
132 |
;; Defines the behaviour of Spacemacs when installing packages. |
72 |
133 |
;; Possible values are `used-only', `used-but-keep-unused' and `all'. |
73 |
134 |
;; `used-only' installs only explicitly used packages and uninstall any |
74 |
135 |
;; unused packages as well as their unused dependencies. |
75 |
136 |
;; `used-but-keep-unused' installs only the used packages but won't uninstall |
76 |
137 |
;; them if they become unused. `all' installs *all* packages supported by |
77 |
138 |
;; Spacemacs and never uninstall them. (default is `used-only') |
78 |
139 |
dotspacemacs-install-packages 'used-only)) |
79 |
140 |
|
80 |
141 |
(defun dotspacemacs/init () |
81 |
142 |
"Initialization function. |
82 |
143 |
This function is called at the very startup of Spacemacs initialization |
83 |
144 |
before layers configuration. |
84 |
145 |
You should not put any user code in there besides modifying the variable |
85 |
146 |
values." |
86 |
147 |
;; This setq-default sexp is an exhaustive list of all the supported |
87 |
148 |
;; spacemacs settings. |
88 |
149 |
(setq-default |
89 |
150 |
;; If non nil ELPA repositories are contacted via HTTPS whenever it's |
90 |
151 |
;; possible. Set it to nil if you have no way to use HTTPS in your |
91 |
152 |
;; environment, otherwise it is strongly recommended to let it set to t. |
92 |
153 |
;; This variable has no effect if Emacs is launched with the parameter |
93 |
154 |
;; `--insecure' which forces the value of this variable to nil. |
94 |
155 |
;; (default t) |
95 |
156 |
dotspacemacs-elpa-https t |
96 |
157 |
;; Maximum allowed time in seconds to contact an ELPA repository. |
97 |
158 |
dotspacemacs-elpa-timeout 5 |
98 |
159 |
;; If non nil then spacemacs will check for updates at startup |
99 |
160 |
;; when the current branch is not `develop'. Note that checking for |
100 |
161 |
;; new versions works via git commands, thus it calls GitHub services |
101 |
162 |
;; whenever you start Emacs. (default nil) |
102 |
163 |
dotspacemacs-check-for-update nil |
103 |
164 |
;; If non-nil, a form that evaluates to a package directory. For example, to |
104 |
165 |
;; use different package directories for different Emacs versions, set this |
105 |
166 |
;; to `emacs-version'. |
106 |
167 |
dotspacemacs-elpa-subdirectory nil |
107 |
168 |
;; One of `vim', `emacs' or `hybrid'. |
108 |
169 |
;; `hybrid' is like `vim' except that `insert state' is replaced by the |
109 |
170 |
;; `hybrid state' with `emacs' key bindings. The value can also be a list |
110 |
171 |
;; with `:variables' keyword (similar to layers). Check the editing styles |
111 |
172 |
;; section of the documentation for details on available variables. |
112 |
173 |
;; (default 'vim) |
113 |
174 |
dotspacemacs-editing-style 'vim |
114 |
175 |
;; If non nil output loading progress in `*Messages*' buffer. (default nil) |
115 |
176 |
dotspacemacs-verbose-loading nil |
116 |
177 |
;; Specify the startup banner. Default value is `official', it displays |
117 |
178 |
;; the official spacemacs logo. An integer value is the index of text |
118 |
179 |
;; banner, `random' chooses a random text banner in `core/banners' |
119 |
180 |
;; directory. A string value must be a path to an image format supported |
120 |
181 |
;; by your Emacs build. |
121 |
182 |
;; If the value is nil then no banner is displayed. (default 'official) |
122 |
183 |
dotspacemacs-startup-banner 'official |
123 |
184 |
;; List of items to show in startup buffer or an association list of |
124 |
185 |
;; the form `(list-type . list-size)`. If nil then it is disabled. |
125 |
186 |
;; Possible values for list-type are: |
126 |
187 |
;; `recents' `bookmarks' `projects' `agenda' `todos'." |
127 |
188 |
;; List sizes may be nil, in which case |
128 |
189 |
;; `spacemacs-buffer-startup-lists-length' takes effect. |
129 |
190 |
dotspacemacs-startup-lists '((recents . 5) |
130 |
191 |
(projects . 7)) |
131 |
192 |
;; True if the home buffer should respond to resize events. |
132 |
193 |
dotspacemacs-startup-buffer-responsive t |
133 |
194 |
;; Default major mode of the scratch buffer (default `text-mode') |
134 |
195 |
dotspacemacs-scratch-mode 'text-mode |
135 |
196 |
;; List of themes, the first of the list is loaded when spacemacs starts. |
136 |
197 |
;; Press |
137 |
198 |
;; with 2 themes variants, one dark and one light) |
138 |
199 |
dotspacemacs-themes '(monokai |
139 |
- | spolsky |
140 |
- | molokai) |
141 |
- | ;; If non nil the cursor color matches the state color in GUI Emacs. |
+ |
200 |
solarized-light) |
+ |
201 |
;; If non nil the cursor color matches the state color in GUI Emacs. |
142 |
202 |
dotspacemacs-colorize-cursor-according-to-state t |
143 |
203 |
;; Default font, or prioritized list of fonts. `powerline-scale' allows to |
144 |
204 |
;; quickly tweak the mode-line size to make separators look not too crappy. |
145 |
205 |
dotspacemacs-default-font '("Hack" |
146 |
206 |
:size 15 |
147 |
207 |
:weight normal |
148 |
208 |
:width normal |
149 |
209 |
:powerline-scale 1.3) |
150 |
- | ;;dotspacemacs-default-font '("Source Code Pro Medium" |
151 |
- | ;;:size 15 |
152 |
- | ;;:weight normal |
153 |
- | ;;:width normal |
154 |
- | ;;:powerline-scale 1.3) |
155 |
- | ;; The leader key |
+ |
210 |
;; The leader key |
156 |
211 |
dotspacemacs-leader-key "SPC" |
157 |
212 |
;; The key used for Emacs commands (M-x) (after pressing on the leader key). |
158 |
213 |
;; (default "SPC") |
159 |
214 |
dotspacemacs-emacs-command-key "SPC" |
160 |
215 |
;; The key used for Vim Ex commands (default ":") |
161 |
216 |
dotspacemacs-ex-command-key ":" |
162 |
217 |
;; The leader key accessible in `emacs state' and `insert state' |
163 |
218 |
;; (default "M-m") |
164 |
219 |
dotspacemacs-emacs-leader-key "M-m" |
165 |
220 |
;; Major mode leader key is a shortcut key which is the equivalent of |
166 |
221 |
;; pressing ` |
167 |
222 |
dotspacemacs-major-mode-leader-key "," |
168 |
223 |
;; Major mode leader key accessible in `emacs state' and `insert state'. |
169 |
224 |
;; (default "C-M-m") |
170 |
225 |
dotspacemacs-major-mode-emacs-leader-key "C-M-m" |
171 |
226 |
;; These variables control whether separate commands are bound in the GUI to |
172 |
227 |
;; the key pairs C-i, TAB and C-m, RET. |
173 |
228 |
;; Setting it to a non-nil value, allows for separate commands under |
174 |
229 |
;; and TAB or |
175 |
230 |
;; In the terminal, these pairs are generally indistinguishable, so this only |
176 |
231 |
;; works in the GUI. (default nil) |
177 |
232 |
dotspacemacs-distinguish-gui-tab nil |
178 |
233 |
;; If non nil `Y' is remapped to `y$' in Evil states. (default nil) |
179 |
234 |
dotspacemacs-remap-Y-to-y$ nil |
180 |
235 |
;; If non-nil, the shift mappings `<' and `>' retain visual state if used |
181 |
236 |
;; there. (default t) |
182 |
237 |
dotspacemacs-retain-visual-state-on-shift t |
183 |
238 |
;; If non-nil, J and K move lines up and down when in visual mode. |
184 |
239 |
;; (default nil) |
185 |
240 |
dotspacemacs-visual-line-move-text nil |
186 |
241 |
;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command. |
187 |
242 |
;; (default nil) |
188 |
243 |
dotspacemacs-ex-substitute-global nil |
189 |
244 |
;; Name of the default layout (default "Default") |
190 |
245 |
dotspacemacs-default-layout-name "Default" |
191 |
246 |
;; If non nil the default layout name is displayed in the mode-line. |
192 |
247 |
;; (default nil) |
193 |
248 |
dotspacemacs-display-default-layout nil |
194 |
249 |
;; If non nil then the last auto saved layouts are resume automatically upon |
195 |
250 |
;; start. (default nil) |
196 |
251 |
dotspacemacs-auto-resume-layouts nil |
197 |
252 |
;; Size (in MB) above which spacemacs will prompt to open the large file |
198 |
253 |
;; literally to avoid performance issues. Opening a file literally means that |
199 |
254 |
;; no major mode or minor modes are active. (default is 1) |
200 |
255 |
dotspacemacs-large-file-size 1 |
201 |
256 |
;; Location where to auto-save files. Possible values are `original' to |
202 |
257 |
;; auto-save the file in-place, `cache' to auto-save the file to another |
203 |
258 |
;; file stored in the cache directory and `nil' to disable auto-saving. |
204 |
259 |
;; (default 'cache) |
205 |
260 |
dotspacemacs-auto-save-file-location 'cache |
206 |
261 |
;; Maximum number of rollback slots to keep in the cache. (default 5) |
207 |
262 |
dotspacemacs-max-rollback-slots 5 |
208 |
263 |
;; If non nil, `helm' will try to minimize the space it uses. (default nil) |
209 |
264 |
dotspacemacs-helm-resize nil |
210 |
265 |
;; if non nil, the helm header is hidden when there is only one source. |
211 |
266 |
;; (default nil) |
212 |
267 |
dotspacemacs-helm-no-header nil |
213 |
268 |
;; define the position to display `helm', options are `bottom', `top', |
214 |
269 |
;; `left', or `right'. (default 'bottom) |
215 |
270 |
dotspacemacs-helm-position 'bottom |
216 |
271 |
;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching |
217 |
272 |
;; in all non-asynchronous sources. If set to `source', preserve individual |
218 |
273 |
;; source settings. Else, disable fuzzy matching in all sources. |
219 |
274 |
;; (default 'always) |
220 |
275 |
dotspacemacs-helm-use-fuzzy 'always |
221 |
276 |
;; If non nil the paste micro-state is enabled. When enabled pressing `p` |
222 |
277 |
;; several times cycle between the kill ring content. (default nil) |
223 |
278 |
dotspacemacs-enable-paste-transient-state nil |
224 |
279 |
;; Which-key delay in seconds. The which-key buffer is the popup listing |
225 |
280 |
;; the commands bound to the current keystroke sequence. (default 0.4) |
226 |
281 |
dotspacemacs-which-key-delay 0.4 |
227 |
282 |
;; Which-key frame position. Possible values are `right', `bottom' and |
228 |
283 |
;; `right-then-bottom'. right-then-bottom tries to display the frame to the |
229 |
284 |
;; right; if there is insufficient space it displays it at the bottom. |
230 |
285 |
;; (default 'bottom) |
231 |
286 |
dotspacemacs-which-key-position 'bottom |
232 |
287 |
;; If non nil a progress bar is displayed when spacemacs is loading. This |
233 |
288 |
;; may increase the boot time on some systems and emacs builds, set it to |
234 |
289 |
;; nil to boost the loading time. (default t) |
235 |
290 |
dotspacemacs-loading-progress-bar t |
236 |
291 |
;; If non nil the frame is fullscreen when Emacs starts up. (default nil) |
237 |
292 |
;; (Emacs 24.4+ only) |
238 |
293 |
dotspacemacs-fullscreen-at-startup nil |
239 |
294 |
;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. |
240 |
295 |
;; Use to disable fullscreen animations in OSX. (default nil) |
241 |
296 |
dotspacemacs-fullscreen-use-non-native nil |
242 |
297 |
;; If non nil the frame is maximized when Emacs starts up. |
243 |
- | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. |
244 |
- | ;; (default nil) (Emacs 24.4+ only) |
245 |
- | dotspacemacs-maximized-at-startup nil |
246 |
- | ;; A value from the range (0..100), in increasing opacity, which describes |
247 |
- | ;; the transparency level of a frame when it's active or selected. |
248 |
- | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
249 |
- | dotspacemacs-active-transparency 90 |
250 |
- | ;; A value from the range (0..100), in increasing opacity, which describes |
251 |
- | ;; the transparency level of a frame when it's inactive or deselected. |
252 |
- | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
253 |
- | dotspacemacs-inactive-transparency 90 |
254 |
- | ;; If non nil show the titles of transient states. (default t) |
255 |
- | dotspacemacs-show-transient-state-title t |
256 |
- | ;; If non nil show the color guide hint for transient state keys. (default t) |
257 |
- | dotspacemacs-show-transient-state-color-guide t |
258 |
- | ;; If non nil unicode symbols are displayed in the mode line. (default t) |
259 |
- | dotspacemacs-mode-line-unicode-symbols t |
260 |
- | ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth |
261 |
- | ;; scrolling overrides the default behavior of Emacs which recenters point |
262 |
- | ;; when it reaches the top or bottom of the screen. (default t) |
263 |
- | dotspacemacs-smooth-scrolling t |
264 |
- | ;; Control line numbers activation. |
265 |
- | ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and |
266 |
- | ;; `text-mode' derivatives. If set to `relative', line numbers are relative. |
267 |
- | ;; This variable can also be set to a property list for finer control: |
268 |
- | ;; '(:relative nil |
269 |
- | ;; :disabled-for-modes dired-mode |
270 |
- | ;; doc-view-mode |
+ |
298 |
;; doc-view-mode |
271 |
299 |
;; markdown-mode |
272 |
300 |
;; org-mode |
273 |
301 |
;; pdf-view-mode |
274 |
302 |
;; text-mode |
275 |
303 |
;; :size-limit-kb 1000) |
276 |
304 |
;; (default nil) |
277 |
305 |
dotspacemacs-line-numbers nil |
278 |
- | ;; Code folding method. Possible values are `evil' and `origami'. |
+ |
306 |
;; Code folding method. Possible values are `evil' and `origami'. |
279 |
307 |
;; (default 'evil) |
280 |
308 |
dotspacemacs-folding-method 'evil |
281 |
309 |
;; If non-nil smartparens-strict-mode will be enabled in programming modes. |
282 |
310 |
;; (default nil) |
283 |
311 |
dotspacemacs-smartparens-strict-mode nil |
284 |
312 |
;; If non-nil pressing the closing parenthesis `)' key in insert mode passes |
285 |
313 |
;; over any automatically added closing parenthesis, bracket, quote, etc… |
286 |
314 |
;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) |
287 |
315 |
dotspacemacs-smart-closing-parenthesis nil |
288 |
316 |
;; Select a scope to highlight delimiters. Possible values are `any', |
289 |
317 |
;; `current', `all' or `nil'. Default is `all' (highlight any scope and |
290 |
318 |
;; emphasis the current one). (default 'all) |
291 |
319 |
dotspacemacs-highlight-delimiters 'all |
292 |
320 |
;; If non nil, advise quit functions to keep server open when quitting. |
293 |
321 |
;; (default nil) |
294 |
322 |
dotspacemacs-persistent-server nil |
295 |
323 |
;; List of search tool executable names. Spacemacs uses the first installed |
296 |
324 |
;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. |
297 |
325 |
;; (default '("ag" "pt" "ack" "grep")) |
298 |
326 |
dotspacemacs-search-tools '("ag" "pt" "ack" "grep") |
299 |
327 |
;; The default package repository used if no explicit repository has been |
300 |
328 |
;; specified with an installed package. |
301 |
329 |
;; Not used for now. (default nil) |
302 |
330 |
dotspacemacs-default-package-repository nil |
303 |
331 |
;; Delete whitespace while saving buffer. Possible values are `all' |
304 |
332 |
;; to aggressively delete empty line and long sequences of whitespace, |
305 |
333 |
;; `trailing' to delete only the whitespace at end of lines, `changed'to |
306 |
334 |
;; delete only whitespace for changed lines or `nil' to disable cleanup. |
307 |
335 |
;; (default nil) |
308 |
336 |
dotspacemacs-whitespace-cleanup nil |
309 |
337 |
)) |
310 |
338 |
|
311 |
339 |
(defun dotspacemacs/user-init () |
312 |
340 |
(define-key evil-normal-state-map (kbd "j") 'evil-next-visual-line) |
313 |
- | (define-key evil-normal-state-map (kbd "k") 'evil-previous-visual-line) |
314 |
- | "Initialization function for user code. |
+ |
341 |
;;; Fira code |
+ |
342 |
;; This works when using emacs --daemon + emacsclient |
+ |
343 |
(add-hook 'after-make-frame-functions (lambda (frame) (set-fontset-font t '(#Xe100 . #Xe16f) "Fira Code Symbol"))) |
+ |
344 |
;; This works when using emacs without server/client |
+ |
345 |
(set-fontset-font t '(#Xe100 . #Xe16f) "Fira Code Symbol") |
+ |
346 |
;; I haven't found one statement that makes both of the above situations work, so I use both for now |
+ |
347 |
|
+ |
348 |
(defconst fira-code-font-lock-keywords-alist |
+ |
349 |
(mapcar (lambda (regex-char-pair) |
+ |
350 |
`(,(car regex-char-pair) |
+ |
351 |
(0 (prog1 () |
+ |
352 |
(compose-region (match-beginning 1) |
+ |
353 |
(match-end 1) |
+ |
354 |
;; The first argument to concat is a string containing a literal tab |
+ |
355 |
,(concat " " (list (decode-char 'ucs (cadr regex-char-pair))))))))) |
+ |
356 |
'(("\\(www\\)" #Xe100) |
+ |
357 |
("[^/]\\(\\*\\*\\)[^/]" #Xe101) |
+ |
358 |
("\\(\\*\\*\\*\\)" #Xe102) |
+ |
359 |
("\\(\\*\\*/\\)" #Xe103) |
+ |
360 |
("\\(\\*>\\)" #Xe104) |
+ |
361 |
("[^*]\\(\\*/\\)" #Xe105) |
+ |
362 |
("\\(\\\\\\\\\\)" #Xe106) |
+ |
363 |
("\\(\\\\\\\\\\\\\\)" #Xe107) |
+ |
364 |
("\\({-\\)" #Xe108) |
+ |
365 |
("\\(\\[\\]\\)" #Xe109) |
+ |
366 |
("\\(::\\)" #Xe10a) |
+ |
367 |
("\\(:::\\)" #Xe10b) |
+ |
368 |
("[^=]\\(:=\\)" #Xe10c) |
+ |
369 |
("\\(!!\\)" #Xe10d) |
+ |
370 |
("\\(!=\\)" #Xe10e) |
+ |
371 |
("\\(!==\\)" #Xe10f) |
+ |
372 |
("\\(-}\\)" #Xe110) |
+ |
373 |
("\\(--\\)" #Xe111) |
+ |
374 |
("\\(---\\)" #Xe112) |
+ |
375 |
("\\(-->\\)" #Xe113) |
+ |
376 |
("[^-]\\(->\\)" #Xe114) |
+ |
377 |
("\\(->>\\)" #Xe115) |
+ |
378 |
("\\(-<\\)" #Xe116) |
+ |
379 |
("\\(-<<\\)" #Xe117) |
+ |
380 |
("\\(-~\\)" #Xe118) |
+ |
381 |
("\\(#{\\)" #Xe119) |
+ |
382 |
("\\(#\\[\\)" #Xe11a) |
+ |
383 |
("\\(##\\)" #Xe11b) |
+ |
384 |
("\\(###\\)" #Xe11c) |
+ |
385 |
("\\(####\\)" #Xe11d) |
+ |
386 |
("\\(#(\\)" #Xe11e) |
+ |
387 |
("\\(#\\?\\)" #Xe11f) |
+ |
388 |
("\\(#_\\)" #Xe120) |
+ |
389 |
("\\(#_(\\)" #Xe121) |
+ |
390 |
("\\(\\.-\\)" #Xe122) |
+ |
391 |
("\\(\\.=\\)" #Xe123) |
+ |
392 |
("\\(\\.\\.\\)" #Xe124) |
+ |
393 |
("\\(\\.\\.<\\)" #Xe125) |
+ |
394 |
("\\(\\.\\.\\.\\)" #Xe126) |
+ |
395 |
("\\(\\?=\\)" #Xe127) |
+ |
396 |
("\\(\\?\\?\\)" #Xe128) |
+ |
397 |
("\\(;;\\)" #Xe129) |
+ |
398 |
("\\(/\\*\\)" #Xe12a) |
+ |
399 |
("\\(/\\*\\*\\)" #Xe12b) |
+ |
400 |
("\\(/=\\)" #Xe12c) |
+ |
401 |
("\\(/==\\)" #Xe12d) |
+ |
402 |
("\\(/>\\)" #Xe12e) |
+ |
403 |
("\\(//\\)" #Xe12f) |
+ |
404 |
("\\(///\\)" #Xe130) |
+ |
405 |
("\\(&&\\)" #Xe131) |
+ |
406 |
("\\(||\\)" #Xe132) |
+ |
407 |
("\\(||=\\)" #Xe133) |
+ |
408 |
("[^|]\\(|=\\)" #Xe134) |
+ |
409 |
("\\(|>\\)" #Xe135) |
+ |
410 |
("\\(\\^=\\)" #Xe136) |
+ |
411 |
("\\(\\$>\\)" #Xe137) |
+ |
412 |
("\\(\\+\\+\\)" #Xe138) |
+ |
413 |
("\\(\\+\\+\\+\\)" #Xe139) |
+ |
414 |
("\\(\\+>\\)" #Xe13a) |
+ |
415 |
("\\(=:=\\)" #Xe13b) |
+ |
416 |
("[^!/]\\(==\\)[^>]" #Xe13c) |
+ |
417 |
("\\(===\\)" #Xe13d) |
+ |
418 |
("\\(==>\\)" #Xe13e) |
+ |
419 |
("[^=]\\(=>\\)" #Xe13f) |
+ |
420 |
("\\(=>>\\)" #Xe140) |
+ |
421 |
("\\(<=\\)" #Xe141) |
+ |
422 |
("\\(=<<\\)" #Xe142) |
+ |
423 |
("\\(=/=\\)" #Xe143) |
+ |
424 |
("\\(>-\\)" #Xe144) |
+ |
425 |
("\\(>=\\)" #Xe145) |
+ |
426 |
("\\(>=>\\)" #Xe146) |
+ |
427 |
("[^-=]\\(>>\\)" #Xe147) |
+ |
428 |
("\\(>>-\\)" #Xe148) |
+ |
429 |
("\\(>>=\\)" #Xe149) |
+ |
430 |
("\\(>>>\\)" #Xe14a) |
+ |
431 |
("\\(<\\*\\)" #Xe14b) |
+ |
432 |
("\\(<\\*>\\)" #Xe14c) |
+ |
433 |
("\\(<|\\)" #Xe14d) |
+ |
434 |
("\\(<|>\\)" #Xe14e) |
+ |
435 |
("\\(<\\$\\)" #Xe14f) |
+ |
436 |
("\\(<\\$>\\)" #Xe150) |
+ |
437 |
("\\( |