Commit | Line | Data |
---|---|---|
9d455f77 | 1 | ;; -*- mode: emacs-lisp -*- |
a41dc7e9 AB |
2 | ;; This file is loaded by Spacemacs at startup. |
3 | ;; It must be stored in your home directory. | |
4 | ||
8068706c | 5 | (defun dotspacemacs/layers () |
271181b4 AB |
6 | "Configuration Layers declaration. |
7 | You should not put any user code in this function besides modifying the variable | |
8 | values." | |
8068706c | 9 | (setq-default |
271181b4 AB |
10 | ;; Base distribution to use. This is a layer contained in the directory |
11 | ;; `+distribution'. For now available distributions are `spacemacs-base' | |
12 | ;; or `spacemacs'. (default 'spacemacs) | |
13 | dotspacemacs-distribution 'spacemacs | |
f138f1d7 AB |
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 | ;; If non-nil then Spacemacs will ask for confirmation before installing | |
25 | ;; a layer lazily. (default t) | |
26 | dotspacemacs-ask-for-lazy-installation t | |
899452ca | 27 | ;; If non-nil layers with lazy install support are lazy installed. |
8068706c | 28 | ;; List of additional paths where to look for configuration layers. |
271181b4 | 29 | ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') |
8068706c | 30 | dotspacemacs-configuration-layer-path '() |
f138f1d7 | 31 | ;; List of configuration layers to load. |
73b4f2fc AB |
32 | dotspacemacs-configuration-layers |
33 | '( | |
f138f1d7 | 34 | aminb |
39889680 | 35 | auto-completion |
f138f1d7 AB |
36 | (better-defaults :variables |
37 | better-defaults-move-to-beginning-of-code-first t | |
38 | better-defaults-move-to-end-of-code-first t) | |
39 | bibtex | |
40 | c-c++ | |
9d455f77 | 41 | emacs-lisp |
39889680 | 42 | git |
5ee38ac2 AB |
43 | ;; (haskell :variables |
44 | ;; haskell-completion-backend 'intero | |
45 | ;; haskell-enable-hindent-style "johan-tibell") | |
f138f1d7 | 46 | html |
5ee38ac2 | 47 | idris |
f138f1d7 AB |
48 | ivy |
49 | ;; javascript | |
39889680 AB |
50 | latex |
51 | markdown | |
52 | org | |
5ee38ac2 | 53 | python |
f138f1d7 | 54 | ;; racket |
5ee38ac2 | 55 | rust |
39889680 | 56 | (shell :variables |
f138f1d7 AB |
57 | shell-default-height 30 |
58 | shell-default-position 'bottom) | |
59 | shell-scripts | |
39889680 AB |
60 | spell-checking |
61 | syntax-checking | |
5ee38ac2 | 62 | version-control |
0b0b4e44 | 63 | yaml |
73b4f2fc | 64 | ) |
271181b4 | 65 | ;; List of additional packages that will be installed without being |
9d455f77 | 66 | ;; wrapped in a layer. If you need some configuration for these |
899452ca | 67 | ;; packages, then consider creating a layer. You can also put the |
271181b4 | 68 | ;; configuration in `dotspacemacs/user-config'. |
5ee38ac2 AB |
69 | dotspacemacs-additional-packages |
70 | '( | |
71 | beacon ; Highlight cursor position in buffer | |
72 | ) | |
f138f1d7 AB |
73 | ;; A list of packages that cannot be updated. |
74 | dotspacemacs-frozen-packages '() | |
75 | ;; A list of packages that will not be installed and loaded. | |
8068706c | 76 | dotspacemacs-excluded-packages '() |
f138f1d7 AB |
77 | ;; Defines the behaviour of Spacemacs when installing packages. |
78 | ;; Possible values are `used-only', `used-but-keep-unused' and `all'. | |
79 | ;; `used-only' installs only explicitly used packages and uninstall any | |
80 | ;; unused packages as well as their unused dependencies. | |
81 | ;; `used-but-keep-unused' installs only the used packages but won't uninstall | |
82 | ;; them if they become unused. `all' installs *all* packages supported by | |
83 | ;; Spacemacs and never uninstall them. (default is `used-only') | |
84 | dotspacemacs-install-packages 'used-only)) | |
a41dc7e9 AB |
85 | |
86 | (defun dotspacemacs/init () | |
8068706c AB |
87 | "Initialization function. |
88 | This function is called at the very startup of Spacemacs initialization | |
271181b4 AB |
89 | before layers configuration. |
90 | You should not put any user code in there besides modifying the variable | |
91 | values." | |
8068706c AB |
92 | ;; This setq-default sexp is an exhaustive list of all the supported |
93 | ;; spacemacs settings. | |
94 | (setq-default | |
f138f1d7 | 95 | ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's |
271181b4 AB |
96 | ;; possible. Set it to nil if you have no way to use HTTPS in your |
97 | ;; environment, otherwise it is strongly recommended to let it set to t. | |
98 | ;; This variable has no effect if Emacs is launched with the parameter | |
99 | ;; `--insecure' which forces the value of this variable to nil. | |
100 | ;; (default t) | |
101 | dotspacemacs-elpa-https t | |
102 | ;; Maximum allowed time in seconds to contact an ELPA repository. | |
103 | dotspacemacs-elpa-timeout 5 | |
f138f1d7 AB |
104 | ;; If non-nil then spacemacs will check for updates at startup |
105 | ;; when the current branch is not `develop'. Note that checking for | |
106 | ;; new versions works via git commands, thus it calls GitHub services | |
107 | ;; whenever you start Emacs. (default nil) | |
108 | dotspacemacs-check-for-update nil | |
109 | ;; If non-nil, a form that evaluates to a package directory. For example, to | |
110 | ;; use different package directories for different Emacs versions, set this | |
111 | ;; to `emacs-version'. | |
112 | dotspacemacs-elpa-subdirectory nil | |
113 | ;; One of `vim', `emacs' or `hybrid'. | |
114 | ;; `hybrid' is like `vim' except that `insert state' is replaced by the | |
115 | ;; `hybrid state' with `emacs' key bindings. The value can also be a list | |
116 | ;; with `:variables' keyword (similar to layers). Check the editing styles | |
117 | ;; section of the documentation for details on available variables. | |
118 | ;; (default 'vim) | |
119 | dotspacemacs-editing-style 'emacs | |
120 | ;; If non-nil output loading progress in `*Messages*' buffer. (default nil) | |
73b4f2fc | 121 | dotspacemacs-verbose-loading nil |
74f45a15 AB |
122 | ;; Specify the startup banner. Default value is `official', it displays |
123 | ;; the official spacemacs logo. An integer value is the index of text | |
124 | ;; banner, `random' chooses a random text banner in `core/banners' | |
9d455f77 AB |
125 | ;; directory. A string value must be a path to an image format supported |
126 | ;; by your Emacs build. | |
271181b4 | 127 | ;; If the value is nil then no banner is displayed. (default 'official) |
74f45a15 | 128 | dotspacemacs-startup-banner 'official |
f138f1d7 AB |
129 | ;; List of items to show in startup buffer or an association list of |
130 | ;; the form `(list-type . list-size)`. If nil then it is disabled. | |
131 | ;; Possible values for list-type are: | |
132 | ;; `recents' `bookmarks' `projects' `agenda' `todos'." | |
133 | ;; List sizes may be nil, in which case | |
134 | ;; `spacemacs-buffer-startup-lists-length' takes effect. | |
135 | dotspacemacs-startup-lists '((recents . 5) | |
136 | (projects . 7)) | |
137 | ;; True if the home buffer should respond to resize events. | |
138 | dotspacemacs-startup-buffer-responsive t | |
899452ca AB |
139 | ;; Default major mode of the scratch buffer (default `text-mode') |
140 | dotspacemacs-scratch-mode 'text-mode | |
8068706c | 141 | ;; List of themes, the first of the list is loaded when spacemacs starts. |
5ee38ac2 | 142 | ;; Press `SPC T n' to cycle to the next theme in the list (works great |
8068706c | 143 | ;; with 2 themes variants, one dark and one light) |
5ee38ac2 AB |
144 | dotspacemacs-themes '((tango-plus :location (recipe :fetcher github |
145 | :repo "aminb/tango-plus-theme")) | |
34ff6667 | 146 | spacemacs-dark |
5ee38ac2 | 147 | spacemacs-light) |
f138f1d7 | 148 | ;; If non-nil the cursor color matches the state color in GUI Emacs. |
34ff6667 | 149 | dotspacemacs-colorize-cursor-according-to-state nil |
f138f1d7 AB |
150 | ;; Default font, or prioritized list of fonts. `powerline-scale' allows to |
151 | ;; quickly tweak the mode-line size to make separators look not too crappy. | |
5ee38ac2 AB |
152 | dotspacemacs-default-font '("Ubuntu Mono" |
153 | :size 10.5 | |
8068706c AB |
154 | :weight normal |
155 | :width normal | |
5ee38ac2 | 156 | :powerline-scale 1.0) |
8068706c AB |
157 | ;; The leader key |
158 | dotspacemacs-leader-key "SPC" | |
5ee38ac2 | 159 | ;; The key used for Emacs commands `M-x' (after pressing on the leader key). |
f138f1d7 AB |
160 | ;; (default "SPC") |
161 | dotspacemacs-emacs-command-key "SPC" | |
162 | ;; The key used for Vim Ex commands (default ":") | |
163 | dotspacemacs-ex-command-key ":" | |
73b4f2fc | 164 | ;; The leader key accessible in `emacs state' and `insert state' |
271181b4 | 165 | ;; (default "M-m") |
0b0b4e44 | 166 | dotspacemacs-emacs-leader-key "M-m" |
8068706c | 167 | ;; Major mode leader key is a shortcut key which is the equivalent of |
271181b4 | 168 | ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",") |
8068706c | 169 | dotspacemacs-major-mode-leader-key "," |
271181b4 | 170 | ;; Major mode leader key accessible in `emacs state' and `insert state'. |
f138f1d7 | 171 | ;; (default "C-M-m") |
5ee38ac2 | 172 | dotspacemacs-major-mode-emacs-leader-key "M-s-m" |
271181b4 | 173 | ;; These variables control whether separate commands are bound in the GUI to |
5ee38ac2 AB |
174 | ;; the key pairs `C-i', `TAB' and `C-m', `RET'. |
175 | ;; Setting it to a non-nil value, allows for separate commands under `C-i' | |
176 | ;; and TAB or `C-m' and `RET'. | |
271181b4 AB |
177 | ;; In the terminal, these pairs are generally indistinguishable, so this only |
178 | ;; works in the GUI. (default nil) | |
179 | dotspacemacs-distinguish-gui-tab nil | |
f138f1d7 | 180 | ;; If non-nil `Y' is remapped to `y$' in Evil states. (default nil) |
899452ca | 181 | dotspacemacs-remap-Y-to-y$ nil |
f138f1d7 AB |
182 | ;; If non-nil, the shift mappings `<' and `>' retain visual state if used |
183 | ;; there. (default t) | |
184 | dotspacemacs-retain-visual-state-on-shift t | |
5ee38ac2 | 185 | ;; If non-nil, `J' and `K' move lines up and down when in visual mode. |
f138f1d7 AB |
186 | ;; (default nil) |
187 | dotspacemacs-visual-line-move-text nil | |
188 | ;; If non-nil, inverse the meaning of `g' in `:substitute' Evil ex-command. | |
899452ca AB |
189 | ;; (default nil) |
190 | dotspacemacs-ex-substitute-global nil | |
271181b4 AB |
191 | ;; Name of the default layout (default "Default") |
192 | dotspacemacs-default-layout-name "Default" | |
f138f1d7 | 193 | ;; If non-nil the default layout name is displayed in the mode-line. |
271181b4 AB |
194 | ;; (default nil) |
195 | dotspacemacs-display-default-layout nil | |
5ee38ac2 | 196 | ;; If non-nil then the last auto saved layouts are resumed automatically upon |
271181b4 AB |
197 | ;; start. (default nil) |
198 | dotspacemacs-auto-resume-layouts nil | |
f138f1d7 AB |
199 | ;; Size (in MB) above which spacemacs will prompt to open the large file |
200 | ;; literally to avoid performance issues. Opening a file literally means that | |
201 | ;; no major mode or minor modes are active. (default is 1) | |
202 | dotspacemacs-large-file-size 1 | |
3e1228d0 AB |
203 | ;; Location where to auto-save files. Possible values are `original' to |
204 | ;; auto-save the file in-place, `cache' to auto-save the file to another | |
205 | ;; file stored in the cache directory and `nil' to disable auto-saving. | |
271181b4 | 206 | ;; (default 'cache) |
3e1228d0 | 207 | dotspacemacs-auto-save-file-location 'cache |
271181b4 AB |
208 | ;; Maximum number of rollback slots to keep in the cache. (default 5) |
209 | dotspacemacs-max-rollback-slots 5 | |
f138f1d7 | 210 | ;; If non-nil, `helm' will try to minimize the space it uses. (default nil) |
271181b4 | 211 | dotspacemacs-helm-resize nil |
f138f1d7 | 212 | ;; if non-nil, the helm header is hidden when there is only one source. |
271181b4 AB |
213 | ;; (default nil) |
214 | dotspacemacs-helm-no-header nil | |
215 | ;; define the position to display `helm', options are `bottom', `top', | |
216 | ;; `left', or `right'. (default 'bottom) | |
217 | dotspacemacs-helm-position 'bottom | |
f138f1d7 AB |
218 | ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching |
219 | ;; in all non-asynchronous sources. If set to `source', preserve individual | |
220 | ;; source settings. Else, disable fuzzy matching in all sources. | |
221 | ;; (default 'always) | |
222 | dotspacemacs-helm-use-fuzzy 'always | |
5ee38ac2 | 223 | ;; If non-nil the paste micro-state is enabled. When enabled pressing `p' |
271181b4 | 224 | ;; several times cycle between the kill ring content. (default nil) |
899452ca | 225 | dotspacemacs-enable-paste-transient-state nil |
271181b4 AB |
226 | ;; Which-key delay in seconds. The which-key buffer is the popup listing |
227 | ;; the commands bound to the current keystroke sequence. (default 0.4) | |
228 | dotspacemacs-which-key-delay 0.4 | |
229 | ;; Which-key frame position. Possible values are `right', `bottom' and | |
230 | ;; `right-then-bottom'. right-then-bottom tries to display the frame to the | |
231 | ;; right; if there is insufficient space it displays it at the bottom. | |
232 | ;; (default 'bottom) | |
233 | dotspacemacs-which-key-position 'bottom | |
f138f1d7 AB |
234 | ;; Control where `switch-to-buffer' displays the buffer. If nil, |
235 | ;; `switch-to-buffer' displays the buffer in the current window even if | |
236 | ;; another same-purpose window is available. If non-nil, `switch-to-buffer' | |
237 | ;; displays the buffer in a same-purpose window even if the buffer can be | |
238 | ;; displayed in the current window. (default nil) | |
239 | dotspacemacs-switch-to-buffer-prefers-purpose nil | |
240 | ;; If non-nil a progress bar is displayed when spacemacs is loading. This | |
8068706c | 241 | ;; may increase the boot time on some systems and emacs builds, set it to |
271181b4 | 242 | ;; nil to boost the loading time. (default t) |
8068706c | 243 | dotspacemacs-loading-progress-bar t |
f138f1d7 | 244 | ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) |
8068706c AB |
245 | ;; (Emacs 24.4+ only) |
246 | dotspacemacs-fullscreen-at-startup nil | |
f138f1d7 | 247 | ;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen. |
271181b4 | 248 | ;; Use to disable fullscreen animations in OSX. (default nil) |
8068706c | 249 | dotspacemacs-fullscreen-use-non-native nil |
f138f1d7 | 250 | ;; If non-nil the frame is maximized when Emacs starts up. |
8068706c | 251 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. |
271181b4 | 252 | ;; (default nil) (Emacs 24.4+ only) |
8068706c AB |
253 | dotspacemacs-maximized-at-startup nil |
254 | ;; A value from the range (0..100), in increasing opacity, which describes | |
255 | ;; the transparency level of a frame when it's active or selected. | |
271181b4 | 256 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
8068706c AB |
257 | dotspacemacs-active-transparency 90 |
258 | ;; A value from the range (0..100), in increasing opacity, which describes | |
259 | ;; the transparency level of a frame when it's inactive or deselected. | |
271181b4 | 260 | ;; Transparency can be toggled through `toggle-transparency'. (default 90) |
8068706c | 261 | dotspacemacs-inactive-transparency 90 |
f138f1d7 | 262 | ;; If non-nil show the titles of transient states. (default t) |
899452ca | 263 | dotspacemacs-show-transient-state-title t |
f138f1d7 | 264 | ;; If non-nil show the color guide hint for transient state keys. (default t) |
899452ca | 265 | dotspacemacs-show-transient-state-color-guide t |
f138f1d7 | 266 | ;; If non-nil unicode symbols are displayed in the mode line. (default t) |
8068706c | 267 | dotspacemacs-mode-line-unicode-symbols t |
f138f1d7 | 268 | ;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth |
899452ca AB |
269 | ;; scrolling overrides the default behavior of Emacs which recenters point |
270 | ;; when it reaches the top or bottom of the screen. (default t) | |
8068706c | 271 | dotspacemacs-smooth-scrolling t |
5ee38ac2 AB |
272 | ;; Control line numbers activation. |
273 | ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and | |
274 | ;; `text-mode' derivatives. If set to `relative', line numbers are relative. | |
275 | ;; This variable can also be set to a property list for finer control: | |
276 | ;; '(:relative nil | |
277 | ;; :disabled-for-modes dired-mode | |
278 | ;; doc-view-mode | |
279 | ;; markdown-mode | |
280 | ;; org-mode | |
281 | ;; pdf-view-mode | |
282 | ;; text-mode | |
283 | ;; :size-limit-kb 1000) | |
271181b4 AB |
284 | ;; (default nil) |
285 | dotspacemacs-line-numbers nil | |
f138f1d7 AB |
286 | ;; Code folding method. Possible values are `evil' and `origami'. |
287 | ;; (default 'evil) | |
288 | dotspacemacs-folding-method 'evil | |
5ee38ac2 | 289 | ;; If non-nil `smartparens-strict-mode' will be enabled in programming modes. |
271181b4 | 290 | ;; (default nil) |
8068706c | 291 | dotspacemacs-smartparens-strict-mode nil |
f138f1d7 AB |
292 | ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes |
293 | ;; over any automatically added closing parenthesis, bracket, quote, etc… | |
294 | ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) | |
295 | dotspacemacs-smart-closing-parenthesis nil | |
271181b4 AB |
296 | ;; Select a scope to highlight delimiters. Possible values are `any', |
297 | ;; `current', `all' or `nil'. Default is `all' (highlight any scope and | |
298 | ;; emphasis the current one). (default 'all) | |
9d455f77 | 299 | dotspacemacs-highlight-delimiters 'all |
f138f1d7 | 300 | ;; If non-nil, advise quit functions to keep server open when quitting. |
271181b4 | 301 | ;; (default nil) |
8068706c | 302 | dotspacemacs-persistent-server nil |
9d455f77 | 303 | ;; List of search tool executable names. Spacemacs uses the first installed |
f138f1d7 AB |
304 | ;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. |
305 | ;; (default '("rg" "ag" "pt" "ack" "grep")) | |
306 | dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") | |
8068706c AB |
307 | ;; The default package repository used if no explicit repository has been |
308 | ;; specified with an installed package. | |
271181b4 | 309 | ;; Not used for now. (default nil) |
5828c5c7 | 310 | dotspacemacs-default-package-repository nil |
899452ca AB |
311 | ;; Delete whitespace while saving buffer. Possible values are `all' |
312 | ;; to aggressively delete empty line and long sequences of whitespace, | |
5ee38ac2 | 313 | ;; `trailing' to delete only the whitespace at end of lines, `changed' to |
899452ca AB |
314 | ;; delete only whitespace for changed lines or `nil' to disable cleanup. |
315 | ;; (default nil) | |
316 | dotspacemacs-whitespace-cleanup nil | |
5ee38ac2 AB |
317 | ;; Either nil or a number of seconds. If non-nil zone out after the specified |
318 | ;; number of seconds. (default nil) | |
319 | dotspacemacs-zone-out-when-idle nil | |
271181b4 AB |
320 | )) |
321 | ||
322 | (defun dotspacemacs/user-init () | |
323 | "Initialization function for user code. | |
f138f1d7 AB |
324 | It is called immediately after `dotspacemacs/init', before layer configuration |
325 | executes. | |
326 | This function is mostly useful for variables that need to be set | |
327 | before packages are loaded. If you are unsure, you should try in setting them in | |
328 | `dotspacemacs/user-config' first." | |
a41dc7e9 AB |
329 | ) |
330 | ||
271181b4 AB |
331 | (defun dotspacemacs/user-config () |
332 | "Configuration function for user code. | |
333 | This function is called at the very end of Spacemacs initialization after | |
f138f1d7 AB |
334 | layers configuration. |
335 | This is the place where most of your configurations should be done. Unless it is | |
336 | explicitly specified that a variable should be set before a package is loaded, | |
337 | you should place your code here." | |
338 | ||
5ee38ac2 AB |
339 | ;; (setq powerline-default-separator 'slant) |
340 | (setq powerline-default-separator 'arrow) | |
39889680 | 341 | |
71e75a4a AB |
342 | ;; (setq magit-commit-arguments '("--signoff" |
343 | ;; "--gpg-sign=4E05246AB0BF7FFB")) | |
f138f1d7 | 344 | |
ccdc4e0c | 345 | ;; Persistent undo across restarts |
f138f1d7 AB |
346 | (setq undo-tree-auto-save-history t |
347 | undo-tree-history-directory-alist | |
348 | `(("." . ,(concat spacemacs-cache-directory "undo")))) | |
349 | (unless (file-exists-p (concat spacemacs-cache-directory "undo")) | |
350 | (make-directory (concat spacemacs-cache-directory "undo"))) | |
39889680 AB |
351 | |
352 | ;; Use pdflatex instead of latex | |
f138f1d7 AB |
353 | (setq TeX-PDF-mode t |
354 | TeX-engine 'xetex) | |
39889680 AB |
355 | |
356 | ;; Support zathura in TeX mode | |
357 | (setq TeX-view-program-selection | |
358 | '(((output-dvi style-pstricks) | |
359 | "dvips and gv") | |
360 | (output-dvi "xdvi") | |
5ee38ac2 | 361 | (output-pdf "Zathura") |
39889680 | 362 | (output-html "xdg-open"))) |
5ee38ac2 AB |
363 | ;; (setq TeX-view-program-list |
364 | ;; '(("zathura" | |
365 | ;; ("zathura" (mode-io-correlate "-sync.sh") | |
366 | ;; " " | |
367 | ;; (mode-io-correlate "%n:1:%t ") | |
368 | ;; "%o")))) | |
369 | ||
370 | ;; Recompile with latexmk -xelatex on save | |
371 | (add-hook 'after-save-hook | |
372 | (lambda () | |
373 | (when (string= major-mode 'latex-mode) | |
374 | (TeX-run-latexmk "LaTeX" | |
375 | (format "latexmk -xelatex %s" (buffer-file-name)) | |
376 | (file-name-base (buffer-file-name)))))) | |
377 | ||
378 | ;; Move to beg/end of buffer before signaling an error | |
379 | (setq scroll-error-top-bottom t) | |
380 | ||
381 | (use-package beacon | |
382 | :ensure nil | |
383 | :init (beacon-mode 1) | |
384 | :diminish beacon-mode) | |
385 | ||
386 | (use-package delsel ; Replace selected text upon typing | |
387 | :ensure nil | |
388 | :defer t | |
389 | :init (delete-selection-mode)) | |
390 | ||
391 | (setq magit-repository-directories '(("~/src/" . 2) | |
392 | ("~/usr/uni/eecs/3311/" . 0) | |
393 | ("~/dotfiles/" . 0))) | |
39889680 AB |
394 | |
395 | ;; Swap : and ; | |
f138f1d7 AB |
396 | ;; (define-key evil-motion-state-map ";" 'evil-ex) |
397 | ;; (define-key evil-motion-state-map ":" 'evil-repeat-find-char) | |
39889680 | 398 | |
88457608 AB |
399 | ;; Use emacs mode for eshell |
400 | ;; (evil-set-initial-state 'eshell-mode 'emacs) | |
899452ca | 401 | ) |
a41dc7e9 | 402 | |
8068706c | 403 | ;; Do not write anything past this comment. This is where Emacs will |
a41dc7e9 | 404 | ;; auto-generate custom variable definitions. |
f138f1d7 AB |
405 | (defun dotspacemacs/emacs-custom-settings () |
406 | "Emacs custom settings. | |
407 | This is an auto-generated function, do not modify its content directly, use | |
408 | Emacs customize menu instead. | |
409 | This function is called at the very end of Spacemacs initialization." | |
39889680 AB |
410 | (custom-set-variables |
411 | ;; custom-set-variables was added by Custom. | |
412 | ;; If you edit it by hand, you could mess it up, so be careful. | |
413 | ;; Your init file should contain only one such instance. | |
414 | ;; If there is more than one, they won't work right. | |
415 | '(package-selected-packages | |
416 | (quote | |
5ee38ac2 | 417 | (idris-mode prop-menu symon string-inflection browse-at-remote yapfify pyvenv pytest pyenv-mode py-isort pip-requirements live-py-mode hy-mode cython-mode company-anaconda anaconda-mode pythonic beacon toml-mode racer git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter flycheck-rust seq diff-hl cargo rust-mode visual-fill-column winum unfill powerline spinner key-chord ht alert log4e gntp markdown-mode window-purpose imenu-list hydra parent-mode helm-bibtex parsebib haml-mode fuzzy flyspell-correct pos-tip flycheck flx magit magit-popup git-commit with-editor smartparens iedit anzu evil goto-chg undo-tree highlight f s diminish autothemer pkg-info epl web-completion-data ghc bind-map bind-key biblio biblio-core packed dash auctex async avy auto-complete popup yaml-mode zenburn-theme tao-theme smeargle ivy-hydra info+ htmlize counsel-projectile counsel swiper company-statistics clues-theme ample-theme yasnippet haskell-mode company projectile ivy helm helm-core zonokai-theme znc zen-and-art-theme xterm-color ws-butler writeroom-mode window-numbering which-key wgrep web-mode volatile-highlights vi-tilde-fringe uuidgen use-package underwater-theme ujelly-theme twilight-theme twilight-bright-theme twilight-anti-bright-theme tronesque-theme toxi-theme toc-org tangotango-theme tango-plus-theme tango-2-theme tagedit sunny-day-theme sublime-themes subatomic256-theme subatomic-theme spacemacs-theme spaceline spacegray-theme sourcerer-theme soothe-theme solarized-theme soft-stone-theme soft-morning-theme soft-charcoal-theme smyx-theme smex slim-mode shell-pop seti-theme scss-mode sass-mode reverse-theme restart-emacs request rainbow-delimiters railscasts-theme quelpa purple-haze-theme pug-mode professional-theme popwin planet-theme phoenix-dark-pink-theme phoenix-dark-mono-theme persp-mode pcre2el pastels-on-dark-theme paradox orgit organic-green-theme org-ref org-projectile org-present org-pomodoro org-plus-contrib org-download org-bullets open-junk-file omtose-phellack-theme oldlace-theme occidental-theme obsidian-theme noctilux-theme niflheim-theme neotree naquadah-theme mwim mustang-theme multi-term mu4e-maildirs-extension mu4e-alert move-text monokai-theme monochrome-theme molokai-theme moe-theme mmm-mode minimal-theme material-theme markdown-toc majapahit-theme magit-gitflow macrostep lush-theme lorem-ipsum linum-relative link-hint light-soap-theme less-css-mode jbeans-theme jazz-theme ivy-purpose ir-black-theme intero insert-shebang inkpot-theme indent-guide ido-vertical-mode hungry-delete hlint-refactor hl-todo hindent highlight-parentheses highlight-numbers highlight-indentation hide-comnt heroku-theme hemisu-theme help-fns+ helm-make hc-zenburn-theme haskell-snippets gruvbox-theme gruber-darker-theme grandshell-theme gotham-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link gh-md gandalf-theme flyspell-correct-ivy flycheck-pos-tip flycheck-haskell flx-ido flatui-theme flatland-theme fish-mode firebelly-theme fill-column-indicator farmhouse-theme fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eval-sexp-fu espresso-theme eshell-z eshell-prompt-extras esh-help erc-yt erc-view-log erc-social-graph erc-image erc-hl-nicks emmet-mode elisp-slime-nav dumb-jump dracula-theme django-theme disaster define-word darktooth-theme darkokai-theme darkmine-theme darkburn-theme dakrone-theme cyberpunk-theme crux creamsody-theme company-web company-shell company-ghci company-ghc company-cabal company-c-headers company-auctex column-enforce-mode color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized cmm-mode cmake-mode clean-aindent-mode clang-format cherry-blossom-theme busybee-theme bubbleberry-theme birds-of-paradise-plus-theme badwolf-theme auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile auctex-latexmk apropospriate-theme anti-zenburn-theme ample-zen-theme alect-themes aggressive-indent afternoon-theme adaptive-wrap ace-window ace-link ac-ispell)))) |
39889680 AB |
418 | (custom-set-faces |
419 | ;; custom-set-faces was added by Custom. | |
420 | ;; If you edit it by hand, you could mess it up, so be careful. | |
421 | ;; Your init file should contain only one such instance. | |
422 | ;; If there is more than one, they won't work right. | |
f138f1d7 AB |
423 | ) |
424 | ) |