diff options
Diffstat (limited to 'dot_spacemacs')
-rw-r--r-- | dot_spacemacs | 570 |
1 files changed, 570 insertions, 0 deletions
diff --git a/dot_spacemacs b/dot_spacemacs new file mode 100644 index 0000000..0efe7db --- /dev/null +++ b/dot_spacemacs | |||
@@ -0,0 +1,570 @@ | |||
1 | ;; -*- mode: emacs-lisp; lexical-binding: t -*- | ||
2 | ;; This file is loaded by Spacemacs at startup. | ||
3 | ;; It must be stored in your home directory. | ||
4 | |||
5 | (defun dotspacemacs/layers () | ||
6 | "Layer configuration: | ||
7 | This function should only modify configuration layer settings." | ||
8 | (setq-default | ||
9 | ;; Base distribution to use. This is a layer contained in the directory | ||
10 | ;; `+distribution'. For now available distributions are `spacemacs-base' | ||
11 | ;; or `spacemacs'. (default 'spacemacs) | ||
12 | dotspacemacs-distribution 'spacemacs | ||
13 | |||
14 | ;; Lazy installation of layers (i.e. layers are installed only when a file | ||
15 | ;; with a supported type is opened). Possible values are `all', `unused' | ||
16 | ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers | ||
17 | ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will | ||
18 | ;; lazy install any layer that support lazy installation even the layers | ||
19 | ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy | ||
20 | ;; installation feature and you have to explicitly list a layer in the | ||
21 | ;; variable `dotspacemacs-configuration-layers' to install it. | ||
22 | ;; (default 'unused) | ||
23 | dotspacemacs-enable-lazy-installation 'unused | ||
24 | |||
25 | ;; If non-nil then Spacemacs will ask for confirmation before installing | ||
26 | ;; a layer lazily. (default t) | ||
27 | dotspacemacs-ask-for-lazy-installation t | ||
28 | |||
29 | ;; List of additional paths where to look for configuration layers. | ||
30 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') | ||
31 | dotspacemacs-configuration-layer-path '() | ||
32 | |||
33 | ;; List of configuration layers to load. | ||
34 | dotspacemacs-configuration-layers | ||
35 | '( | ||
36 | ;; ---------------------------------------------------------------- | ||
37 | ;; Example of useful layers you may want to use right away. | ||
38 | ;; Uncomment some layer names and press `SPC f e R' (Vim style) or | ||
39 | ;; `M-m f e R' (Emacs style) to install them. | ||
40 | ;; ---------------------------------------------------------------- | ||
41 | ;; auto-completion | ||
42 | ;; better-defaults | ||
43 | emacs-lisp | ||
44 | ;; git | ||
45 | helm | ||
46 | ;; lsp | ||
47 | ;; markdown | ||
48 | multiple-cursors | ||
49 | ;; org | ||
50 | ;; (shell :variables | ||
51 | ;; shell-default-height 30 | ||
52 | ;; shell-default-position 'bottom) | ||
53 | ;; spell-checking | ||
54 | ;; syntax-checking | ||
55 | ;; version-control | ||
56 | treemacs) | ||
57 | |||
58 | |||
59 | ;; List of additional packages that will be installed without being wrapped | ||
60 | ;; in a layer (generally the packages are installed only and should still be | ||
61 | ;; loaded using load/require/use-package in the user-config section below in | ||
62 | ;; this file). If you need some configuration for these packages, then | ||
63 | ;; consider creating a layer. You can also put the configuration in | ||
64 | ;; `dotspacemacs/user-config'. To use a local version of a package, use the | ||
65 | ;; `:location' property: '(your-package :location "~/path/to/your-package/") | ||
66 | ;; Also include the dependencies as they will not be resolved automatically. | ||
67 | dotspacemacs-additional-packages '() | ||
68 | |||
69 | ;; A list of packages that cannot be updated. | ||
70 | dotspacemacs-frozen-packages '() | ||
71 | |||
72 | ;; A list of packages that will not be installed and loaded. | ||
73 | dotspacemacs-excluded-packages '() | ||
74 | |||
75 | ;; Defines the behaviour of Spacemacs when installing packages. | ||
76 | ;; Possible values are `used-only', `used-but-keep-unused' and `all'. | ||
77 | ;; `used-only' installs only explicitly used packages and deletes any unused | ||
78 | ;; packages as well as their unused dependencies. `used-but-keep-unused' | ||
79 | ;; installs only the used packages but won't delete unused ones. `all' | ||
80 | ;; installs *all* packages supported by Spacemacs and never uninstalls them. | ||
81 | ;; (default is `used-only') | ||
82 | dotspacemacs-install-packages 'used-only)) | ||
83 | |||
84 | (defun dotspacemacs/init () | ||
85 | "Initialization: | ||
86 | This function is called at the very beginning of Spacemacs startup, | ||
87 | before layer configuration. | ||
88 | It should only modify the values of Spacemacs settings." | ||
89 | ;; This setq-default sexp is an exhaustive list of all the supported | ||
90 | ;; spacemacs settings. | ||
91 | (setq-default | ||
92 | ;; If non-nil then enable support for the portable dumper. You'll need to | ||
93 | ;; compile Emacs 27 from source following the instructions in file | ||
94 | ;; EXPERIMENTAL.org at to root of the git repository. | ||
95 | ;; | ||
96 | ;; WARNING: pdumper does not work with Native Compilation, so it's disabled | ||
97 | ;; regardless of the following setting when native compilation is in effect. | ||
98 | ;; | ||
99 | ;; (default nil) | ||
100 | dotspacemacs-enable-emacs-pdumper nil | ||
101 | |||
102 | ;; Name of executable file pointing to emacs 27+. This executable must be | ||
103 | ;; in your PATH. | ||
104 | ;; (default "emacs") | ||
105 | dotspacemacs-emacs-pdumper-executable-file "emacs" | ||
106 | |||
107 | ;; Name of the Spacemacs dump file. This is the file will be created by the | ||
108 | ;; portable dumper in the cache directory under dumps sub-directory. | ||
109 | ;; To load it when starting Emacs add the parameter `--dump-file' | ||
110 | ;; when invoking Emacs 27.1 executable on the command line, for instance: | ||
111 | ;; ./emacs --dump-file=$HOME/.emacs.d/.cache/dumps/spacemacs-27.1.pdmp | ||
112 | ;; (default (format "spacemacs-%s.pdmp" emacs-version)) | ||
113 | dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version) | ||
114 | |||
115 | ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's | ||
116 | ;; possible. Set it to nil if you have no way to use HTTPS in your | ||
117 | ;; environment, otherwise it is strongly recommended to let it set to t. | ||
118 | ;; This variable has no effect if Emacs is launched with the parameter | ||
119 | ;; `--insecure' which forces the value of this variable to nil. | ||
120 | ;; (default t) | ||
121 | dotspacemacs-elpa-https t | ||
122 | |||
123 | ;; Maximum allowed time in seconds to contact an ELPA repository. | ||
124 | ;; (default 5) | ||
125 | dotspacemacs-elpa-timeout 5 | ||
126 | |||
127 | ;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes. | ||
128 | ;; This is an advanced option and should not be changed unless you suspect | ||
129 | ;; performance issues due to garbage collection operations. | ||
130 | ;; (default '(100000000 0.1)) | ||
131 | dotspacemacs-gc-cons '(100000000 0.1) | ||
132 | |||
133 | ;; Set `read-process-output-max' when startup finishes. | ||
134 | ;; This defines how much data is read from a foreign process. | ||
135 | ;; Setting this >= 1 MB should increase performance for lsp servers | ||
136 | ;; in emacs 27. | ||
137 | ;; (default (* 1024 1024)) | ||
138 | dotspacemacs-read-process-output-max (* 1024 1024) | ||
139 | |||
140 | ;; If non-nil then Spacelpa repository is the primary source to install | ||
141 | ;; a locked version of packages. If nil then Spacemacs will install the | ||
142 | ;; latest version of packages from MELPA. Spacelpa is currently in | ||
143 | ;; experimental state please use only for testing purposes. | ||
144 | ;; (default nil) | ||
145 | dotspacemacs-use-spacelpa nil | ||
146 | |||
147 | ;; If non-nil then verify the signature for downloaded Spacelpa archives. | ||
148 | ;; (default t) | ||
149 | dotspacemacs-verify-spacelpa-archives t | ||
150 | |||
151 | ;; If non-nil then spacemacs will check for updates at startup | ||
152 | ;; when the current branch is not `develop'. Note that checking for | ||
153 | ;; new versions works via git commands, thus it calls GitHub services | ||
154 | ;; whenever you start Emacs. (default nil) | ||
155 | dotspacemacs-check-for-update nil | ||
156 | |||
157 | ;; If non-nil, a form that evaluates to a package directory. For example, to | ||
158 | ;; use different package directories for different Emacs versions, set this | ||
159 | ;; to `emacs-version'. (default 'emacs-version) | ||
160 | dotspacemacs-elpa-subdirectory 'emacs-version | ||
161 | |||
162 | ;; One of `vim', `emacs' or `hybrid'. | ||
163 | ;; `hybrid' is like `vim' except that `insert state' is replaced by the | ||
164 | ;; `hybrid state' with `emacs' key bindings. The value can also be a list | ||
165 | ;; with `:variables' keyword (similar to layers). Check the editing styles | ||
166 | ;; section of the documentation for details on available variables. | ||
167 | ;; (default 'vim) | ||
168 | dotspacemacs-editing-style 'vim | ||
169 | |||
170 | ;; If non-nil show the version string in the Spacemacs buffer. It will | ||
171 | ;; appear as (spacemacs version)@(emacs version) | ||
172 | ;; (default t) | ||
173 | dotspacemacs-startup-buffer-show-version t | ||
174 | |||
175 | ;; Specify the startup banner. Default value is `official', it displays | ||
176 | ;; the official spacemacs logo. An integer value is the index of text | ||
177 | ;; banner, `random' chooses a random text banner in `core/banners' | ||
178 | ;; directory. A string value must be a path to an image format supported | ||
179 | ;; by your Emacs build. | ||
180 | ;; If the value is nil then no banner is displayed. (default 'official) | ||
181 | dotspacemacs-startup-banner 'official | ||
182 | |||
183 | ;; Scale factor controls the scaling (size) of the startup banner. Default | ||
184 | ;; value is `auto' for scaling the logo automatically to fit all buffer | ||
185 | ;; contents, to a maximum of the full image height and a minimum of 3 line | ||
186 | ;; heights. If set to a number (int or float) it is used as a constant | ||
187 | ;; scaling factor for the default logo size. | ||
188 | dotspacemacs-startup-banner-scale 'auto | ||
189 | |||
190 | ;; List of items to show in startup buffer or an association list of | ||
191 | ;; the form `(list-type . list-size)`. If nil then it is disabled. | ||
192 | ;; Possible values for list-type are: | ||
193 | ;; `recents' `recents-by-project' `bookmarks' `projects' `agenda' `todos'. | ||
194 | ;; List sizes may be nil, in which case | ||
195 | ;; `spacemacs-buffer-startup-lists-length' takes effect. | ||
196 | ;; The exceptional case is `recents-by-project', where list-type must be a | ||
197 | ;; pair of numbers, e.g. `(recents-by-project . (7 . 5))', where the first | ||
198 | ;; number is the project limit and the second the limit on the recent files | ||
199 | ;; within a project. | ||
200 | dotspacemacs-startup-lists '((recents . 5) | ||
201 | (projects . 7)) | ||
202 | |||
203 | ;; True if the home buffer should respond to resize events. (default t) | ||
204 | dotspacemacs-startup-buffer-responsive t | ||
205 | |||
206 | ;; Show numbers before the startup list lines. (default t) | ||
207 | dotspacemacs-show-startup-list-numbers t | ||
208 | |||
209 | ;; The minimum delay in seconds between number key presses. (default 0.4) | ||
210 | dotspacemacs-startup-buffer-multi-digit-delay 0.4 | ||
211 | |||
212 | ;; If non-nil, show file icons for entries and headings on Spacemacs home buffer. | ||
213 | ;; This has no effect in terminal or if "all-the-icons" package or the font | ||
214 | ;; is not installed. (default nil) | ||
215 | dotspacemacs-startup-buffer-show-icons nil | ||
216 | |||
217 | ;; Default major mode for a new empty buffer. Possible values are mode | ||
218 | ;; names such as `text-mode'; and `nil' to use Fundamental mode. | ||
219 | ;; (default `text-mode') | ||
220 | dotspacemacs-new-empty-buffer-major-mode 'text-mode | ||
221 | |||
222 | ;; Default major mode of the scratch buffer (default `text-mode') | ||
223 | dotspacemacs-scratch-mode 'text-mode | ||
224 | |||
225 | ;; If non-nil, *scratch* buffer will be persistent. Things you write down in | ||
226 | ;; *scratch* buffer will be saved and restored automatically. | ||
227 | dotspacemacs-scratch-buffer-persistent nil | ||
228 | |||
229 | ;; If non-nil, `kill-buffer' on *scratch* buffer | ||
230 | ;; will bury it instead of killing. | ||
231 | dotspacemacs-scratch-buffer-unkillable nil | ||
232 | |||
233 | ;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!" | ||
234 | ;; (default nil) | ||
235 | dotspacemacs-initial-scratch-message nil | ||
236 | |||
237 | ;; List of themes, the first of the list is loaded when spacemacs starts. | ||
238 | ;; Press `SPC T n' to cycle to the next theme in the list (works great | ||
239 | ;; with 2 themes variants, one dark and one light) | ||
240 | dotspacemacs-themes '(spacemacs-dark | ||
241 | spacemacs-light) | ||
242 | |||
243 | ;; Set the theme for the Spaceline. Supported themes are `spacemacs', | ||
244 | ;; `all-the-icons', `custom', `doom', `vim-powerline' and `vanilla'. The | ||
245 | ;; first three are spaceline themes. `doom' is the doom-emacs mode-line. | ||
246 | ;; `vanilla' is default Emacs mode-line. `custom' is a user defined themes, | ||
247 | ;; refer to the DOCUMENTATION.org for more info on how to create your own | ||
248 | ;; spaceline theme. Value can be a symbol or list with additional properties. | ||
249 | ;; (default '(spacemacs :separator wave :separator-scale 1.5)) | ||
250 | dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5) | ||
251 | |||
252 | ;; If non-nil the cursor color matches the state color in GUI Emacs. | ||
253 | ;; (default t) | ||
254 | dotspacemacs-colorize-cursor-according-to-state t | ||
255 | |||
256 | ;; Default font or prioritized list of fonts. The `:size' can be specified as | ||
257 | ;; a non-negative integer (pixel size), or a floating-point (point size). | ||
258 | ;; Point size is recommended, because it's device independent. (default 10.0) | ||
259 | dotspacemacs-default-font '("Source Code Pro" | ||
260 | :size 10.0 | ||
261 | :weight normal | ||
262 | :width normal) | ||
263 | |||
264 | ;; The leader key (default "SPC") | ||
265 | dotspacemacs-leader-key "SPC" | ||
266 | |||
267 | ;; The key used for Emacs commands `M-x' (after pressing on the leader key). | ||
268 | ;; (default "SPC") | ||
269 | dotspacemacs-emacs-command-key "SPC" | ||
270 | |||
271 | ;; The key used for Vim Ex commands (default ":") | ||
272 | dotspacemacs-ex-command-key ":" | ||
273 | |||
274 | ;; The leader key accessible in `emacs state' and `insert state' | ||
275 | ;; (default "M-m") | ||
276 | dotspacemacs-emacs-leader-key "M-m" | ||
277 | |||
278 | ;; Major mode leader key is a shortcut key which is the equivalent of | ||
279 | ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",") | ||
280 | dotspacemacs-major-mode-leader-key "," | ||
281 | |||
282 | ;; Major mode leader key accessible in `emacs state' and `insert state'. | ||
283 | ;; (default "C-M-m" for terminal mode, "<M-return>" for GUI mode). | ||
284 | ;; Thus M-RET should work as leader key in both GUI and terminal modes. | ||
285 | ;; C-M-m also should work in terminal mode, but not in GUI mode. | ||
286 | dotspacemacs-major-mode-emacs-leader-key (if window-system "<M-return>" "C-M-m") | ||
287 | |||
288 | ;; These variables control whether separate commands are bound in the GUI to | ||
289 | ;; the key pairs `C-i', `TAB' and `C-m', `RET'. | ||
290 | ;; Setting it to a non-nil value, allows for separate commands under `C-i' | ||
291 | ;; and TAB or `C-m' and `RET'. | ||
292 | ;; In the terminal, these pairs are generally indistinguishable, so this only | ||
293 | ;; works in the GUI. (default nil) | ||
294 | dotspacemacs-distinguish-gui-tab nil | ||
295 | |||
296 | ;; Name of the default layout (default "Default") | ||
297 | dotspacemacs-default-layout-name "Default" | ||
298 | |||
299 | ;; If non-nil the default layout name is displayed in the mode-line. | ||
300 | ;; (default nil) | ||
301 | dotspacemacs-display-default-layout nil | ||
302 | |||
303 | ;; If non-nil then the last auto saved layouts are resumed automatically upon | ||
304 | ;; start. (default nil) | ||
305 | dotspacemacs-auto-resume-layouts nil | ||
306 | |||
307 | ;; If non-nil, auto-generate layout name when creating new layouts. Only has | ||
308 | ;; effect when using the "jump to layout by number" commands. (default nil) | ||
309 | dotspacemacs-auto-generate-layout-names nil | ||
310 | |||
311 | ;; Size (in MB) above which spacemacs will prompt to open the large file | ||
312 | ;; literally to avoid performance issues. Opening a file literally means that | ||
313 | ;; no major mode or minor modes are active. (default is 1) | ||
314 | dotspacemacs-large-file-size 1 | ||
315 | |||
316 | ;; Location where to auto-save files. Possible values are `original' to | ||
317 | ;; auto-save the file in-place, `cache' to auto-save the file to another | ||
318 | ;; file stored in the cache directory and `nil' to disable auto-saving. | ||
319 | ;; (default 'cache) | ||
320 | dotspacemacs-auto-save-file-location 'cache | ||
321 | |||
322 | ;; Maximum number of rollback slots to keep in the cache. (default 5) | ||
323 | dotspacemacs-max-rollback-slots 5 | ||
324 | |||
325 | ;; If non-nil, the paste transient-state is enabled. While enabled, after you | ||
326 | ;; paste something, pressing `C-j' and `C-k' several times cycles through the | ||
327 | ;; elements in the `kill-ring'. (default nil) | ||
328 | dotspacemacs-enable-paste-transient-state nil | ||
329 | |||
330 | ;; Which-key delay in seconds. The which-key buffer is the popup listing | ||
331 | ;; the commands bound to the current keystroke sequence. (default 0.4) | ||
332 | dotspacemacs-which-key-delay 0.4 | ||
333 | |||
334 | ;; Which-key frame position. Possible values are `right', `bottom' and | ||
335 | ;; `right-then-bottom'. right-then-bottom tries to display the frame to the | ||
336 | ;; right; if there is insufficient space it displays it at the bottom. | ||
337 | ;; (default 'bottom) | ||
338 | dotspacemacs-which-key-position 'bottom | ||
339 | |||
340 | ;; Control where `switch-to-buffer' displays the buffer. If nil, | ||
341 | ;; `switch-to-buffer' displays the buffer in the current window even if | ||
342 | ;; another same-purpose window is available. If non-nil, `switch-to-buffer' | ||
343 | ;; displays the buffer in a same-purpose window even if the buffer can be | ||
344 | ;; displayed in the current window. (default nil) | ||
345 | dotspacemacs-switch-to-buffer-prefers-purpose nil | ||
346 | |||
347 | ;; If non-nil a progress bar is displayed when spacemacs is loading. This | ||
348 | ;; may increase the boot time on some systems and emacs builds, set it to | ||
349 | ;; nil to boost the loading time. (default t) | ||
350 | dotspacemacs-loading-progress-bar t | ||
351 | |||
352 | ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) | ||
353 | ;; (Emacs 24.4+ only) | ||
354 | dotspacemacs-fullscreen-at-startup nil | ||
355 | |||
356 | ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen. | ||
357 | ;; Use to disable fullscreen animations in OSX. (default nil) | ||
358 | dotspacemacs-fullscreen-use-non-native nil | ||
359 | |||
360 | ;; If non-nil the frame is maximized when Emacs starts up. | ||
361 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. | ||
362 | ;; (default nil) (Emacs 24.4+ only) | ||
363 | dotspacemacs-maximized-at-startup nil | ||
364 | |||
365 | ;; If non-nil the frame is undecorated when Emacs starts up. Combine this | ||
366 | ;; variable with `dotspacemacs-maximized-at-startup' in OSX to obtain | ||
367 | ;; borderless fullscreen. (default nil) | ||
368 | dotspacemacs-undecorated-at-startup nil | ||
369 | |||
370 | ;; A value from the range (0..100), in increasing opacity, which describes | ||
371 | ;; the transparency level of a frame when it's active or selected. | ||
372 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) | ||
373 | dotspacemacs-active-transparency 90 | ||
374 | |||
375 | ;; A value from the range (0..100), in increasing opacity, which describes | ||
376 | ;; the transparency level of a frame when it's inactive or deselected. | ||
377 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) | ||
378 | dotspacemacs-inactive-transparency 90 | ||
379 | |||
380 | ;; If non-nil show the titles of transient states. (default t) | ||
381 | dotspacemacs-show-transient-state-title t | ||
382 | |||
383 | ;; If non-nil show the color guide hint for transient state keys. (default t) | ||
384 | dotspacemacs-show-transient-state-color-guide t | ||
385 | |||
386 | ;; If non-nil unicode symbols are displayed in the mode line. | ||
387 | ;; If you use Emacs as a daemon and wants unicode characters only in GUI set | ||
388 | ;; the value to quoted `display-graphic-p'. (default t) | ||
389 | dotspacemacs-mode-line-unicode-symbols t | ||
390 | |||
391 | ;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth | ||
392 | ;; scrolling overrides the default behavior of Emacs which recenters point | ||
393 | ;; when it reaches the top or bottom of the screen. (default t) | ||
394 | dotspacemacs-smooth-scrolling t | ||
395 | |||
396 | ;; Show the scroll bar while scrolling. The auto hide time can be configured | ||
397 | ;; by setting this variable to a number. (default t) | ||
398 | dotspacemacs-scroll-bar-while-scrolling t | ||
399 | |||
400 | ;; Control line numbers activation. | ||
401 | ;; If set to `t', `relative' or `visual' then line numbers are enabled in all | ||
402 | ;; `prog-mode' and `text-mode' derivatives. If set to `relative', line | ||
403 | ;; numbers are relative. If set to `visual', line numbers are also relative, | ||
404 | ;; but only visual lines are counted. For example, folded lines will not be | ||
405 | ;; counted and wrapped lines are counted as multiple lines. | ||
406 | ;; This variable can also be set to a property list for finer control: | ||
407 | ;; '(:relative nil | ||
408 | ;; :visual nil | ||
409 | ;; :disabled-for-modes dired-mode | ||
410 | ;; doc-view-mode | ||
411 | ;; markdown-mode | ||
412 | ;; org-mode | ||
413 | ;; pdf-view-mode | ||
414 | ;; text-mode | ||
415 | ;; :size-limit-kb 1000) | ||
416 | ;; When used in a plist, `visual' takes precedence over `relative'. | ||
417 | ;; (default nil) | ||
418 | dotspacemacs-line-numbers nil | ||
419 | |||
420 | ;; Code folding method. Possible values are `evil', `origami' and `vimish'. | ||
421 | ;; (default 'evil) | ||
422 | dotspacemacs-folding-method 'evil | ||
423 | |||
424 | ;; If non-nil and `dotspacemacs-activate-smartparens-mode' is also non-nil, | ||
425 | ;; `smartparens-strict-mode' will be enabled in programming modes. | ||
426 | ;; (default nil) | ||
427 | dotspacemacs-smartparens-strict-mode nil | ||
428 | |||
429 | ;; If non-nil smartparens-mode will be enabled in programming modes. | ||
430 | ;; (default t) | ||
431 | dotspacemacs-activate-smartparens-mode t | ||
432 | |||
433 | ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes | ||
434 | ;; over any automatically added closing parenthesis, bracket, quote, etc... | ||
435 | ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) | ||
436 | dotspacemacs-smart-closing-parenthesis nil | ||
437 | |||
438 | ;; Select a scope to highlight delimiters. Possible values are `any', | ||
439 | ;; `current', `all' or `nil'. Default is `all' (highlight any scope and | ||
440 | ;; emphasis the current one). (default 'all) | ||
441 | dotspacemacs-highlight-delimiters 'all | ||
442 | |||
443 | ;; If non-nil, start an Emacs server if one is not already running. | ||
444 | ;; (default nil) | ||
445 | dotspacemacs-enable-server nil | ||
446 | |||
447 | ;; Set the emacs server socket location. | ||
448 | ;; If nil, uses whatever the Emacs default is, otherwise a directory path | ||
449 | ;; like \"~/.emacs.d/server\". It has no effect if | ||
450 | ;; `dotspacemacs-enable-server' is nil. | ||
451 | ;; (default nil) | ||
452 | dotspacemacs-server-socket-dir nil | ||
453 | |||
454 | ;; If non-nil, advise quit functions to keep server open when quitting. | ||
455 | ;; (default nil) | ||
456 | dotspacemacs-persistent-server nil | ||
457 | |||
458 | ;; List of search tool executable names. Spacemacs uses the first installed | ||
459 | ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. | ||
460 | ;; (default '("rg" "ag" "pt" "ack" "grep")) | ||
461 | dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") | ||
462 | |||
463 | ;; Format specification for setting the frame title. | ||
464 | ;; %a - the `abbreviated-file-name', or `buffer-name' | ||
465 | ;; %t - `projectile-project-name' | ||
466 | ;; %I - `invocation-name' | ||
467 | ;; %S - `system-name' | ||
468 | ;; %U - contents of $USER | ||
469 | ;; %b - buffer name | ||
470 | ;; %f - visited file name | ||
471 | ;; %F - frame name | ||
472 | ;; %s - process status | ||
473 | ;; %p - percent of buffer above top of window, or Top, Bot or All | ||
474 | ;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All | ||
475 | ;; %m - mode name | ||
476 | ;; %n - Narrow if appropriate | ||
477 | ;; %z - mnemonics of buffer, terminal, and keyboard coding systems | ||
478 | ;; %Z - like %z, but including the end-of-line format | ||
479 | ;; If nil then Spacemacs uses default `frame-title-format' to avoid | ||
480 | ;; performance issues, instead of calculating the frame title by | ||
481 | ;; `spacemacs/title-prepare' all the time. | ||
482 | ;; (default "%I@%S") | ||
483 | dotspacemacs-frame-title-format "%I@%S" | ||
484 | |||
485 | ;; Format specification for setting the icon title format | ||
486 | ;; (default nil - same as frame-title-format) | ||
487 | dotspacemacs-icon-title-format nil | ||
488 | |||
489 | ;; Color highlight trailing whitespace in all prog-mode and text-mode derived | ||
490 | ;; modes such as c++-mode, python-mode, emacs-lisp, html-mode, rst-mode etc. | ||
491 | ;; (default t) | ||
492 | dotspacemacs-show-trailing-whitespace t | ||
493 | |||
494 | ;; Delete whitespace while saving buffer. Possible values are `all' | ||
495 | ;; to aggressively delete empty line and long sequences of whitespace, | ||
496 | ;; `trailing' to delete only the whitespace at end of lines, `changed' to | ||
497 | ;; delete only whitespace for changed lines or `nil' to disable cleanup. | ||
498 | ;; (default nil) | ||
499 | dotspacemacs-whitespace-cleanup nil | ||
500 | |||
501 | ;; If non-nil activate `clean-aindent-mode' which tries to correct | ||
502 | ;; virtual indentation of simple modes. This can interfere with mode specific | ||
503 | ;; indent handling like has been reported for `go-mode'. | ||
504 | ;; If it does deactivate it here. | ||
505 | ;; (default t) | ||
506 | dotspacemacs-use-clean-aindent-mode t | ||
507 | |||
508 | ;; Accept SPC as y for prompts if non-nil. (default nil) | ||
509 | dotspacemacs-use-SPC-as-y nil | ||
510 | |||
511 | ;; If non-nil shift your number row to match the entered keyboard layout | ||
512 | ;; (only in insert state). Currently supported keyboard layouts are: | ||
513 | ;; `qwerty-us', `qwertz-de' and `querty-ca-fr'. | ||
514 | ;; New layouts can be added in `spacemacs-editing' layer. | ||
515 | ;; (default nil) | ||
516 | dotspacemacs-swap-number-row nil | ||
517 | |||
518 | ;; Either nil or a number of seconds. If non-nil zone out after the specified | ||
519 | ;; number of seconds. (default nil) | ||
520 | dotspacemacs-zone-out-when-idle nil | ||
521 | |||
522 | ;; Run `spacemacs/prettify-org-buffer' when | ||
523 | ;; visiting README.org files of Spacemacs. | ||
524 | ;; (default nil) | ||
525 | dotspacemacs-pretty-docs nil | ||
526 | |||
527 | ;; If nil the home buffer shows the full path of agenda items | ||
528 | ;; and todos. If non-nil only the file name is shown. | ||
529 | dotspacemacs-home-shorten-agenda-source nil | ||
530 | |||
531 | ;; If non-nil then byte-compile some of Spacemacs files. | ||
532 | dotspacemacs-byte-compile nil)) | ||
533 | |||
534 | (defun dotspacemacs/user-env () | ||
535 | "Environment variables setup. | ||
536 | This function defines the environment variables for your Emacs session. By | ||
537 | default it calls `spacemacs/load-spacemacs-env' which loads the environment | ||
538 | variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'. | ||
539 | See the header of this file for more information." | ||
540 | (spacemacs/load-spacemacs-env) | ||
541 | ) | ||
542 | |||
543 | (defun dotspacemacs/user-init () | ||
544 | "Initialization for user code: | ||
545 | This function is called immediately after `dotspacemacs/init', before layer | ||
546 | configuration. | ||
547 | It is mostly for variables that should be set before packages are loaded. | ||
548 | If you are unsure, try setting them in `dotspacemacs/user-config' first." | ||
549 | ) | ||
550 | |||
551 | |||
552 | (defun dotspacemacs/user-load () | ||
553 | "Library to load while dumping. | ||
554 | This function is called only while dumping Spacemacs configuration. You can | ||
555 | `require' or `load' the libraries of your choice that will be included in the | ||
556 | dump." | ||
557 | ) | ||
558 | |||
559 | |||
560 | (defun dotspacemacs/user-config () | ||
561 | "Configuration for user code: | ||
562 | This function is called at the very end of Spacemacs startup, after layer | ||
563 | configuration. | ||
564 | Put your configuration code here, except for variables that should be set | ||
565 | before packages are loaded." | ||
566 | ) | ||
567 | |||
568 | |||
569 | ;; Do not write anything past this comment. This is where Emacs will | ||
570 | ;; auto-generate custom variable definitions. | ||