[spacemacs] update dot file w latest dev template
[~bandali/configs] / spacemacs / .spacemacs
CommitLineData
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.
7You should not put any user code in this function besides modifying the variable
8values."
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
8068706c 14 ;; List of additional paths where to look for configuration layers.
271181b4 15 ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
8068706c
AB
16 dotspacemacs-configuration-layer-path '()
17 ;; List of configuration layers to load. If it is the symbol `all' instead
18 ;; of a list then all discovered layers will be installed.
73b4f2fc
AB
19 dotspacemacs-configuration-layers
20 '(
9d455f77
AB
21 ;; ----------------------------------------------------------------
22 ;; Example of useful layers you may want to use right away.
23 ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
24 ;; <M-m f e R> (Emacs style) to install them.
25 ;; ----------------------------------------------------------------
73b4f2fc
AB
26 auto-completion
27 better-defaults
9d455f77 28 emacs-lisp
3e1228d0 29 git
73b4f2fc
AB
30 markdown
31 org
3e1228d0
AB
32 (shell :variables
33 shell-default-height 30
34 shell-default-position 'bottom)
271181b4 35 spell-checking
73b4f2fc 36 syntax-checking
271181b4 37 ;; mu4e
73b4f2fc 38 c-c++
271181b4 39 java
3e1228d0 40 latex
271181b4
AB
41 ;; erc
42 ;; irc
43 ;; themes-megapack
44 ;; music
45 ;; (ranger :variables
46 ;; ranger-show-preview t)
47 xkcd
9d455f77
AB
48 ;; (haskell :variables '(haskell-enable-hindent-style "chris-done"
49 ;; haskell-enable-shm-support t))
271181b4 50 ;; version-control
73b4f2fc 51 )
271181b4 52 ;; List of additional packages that will be installed without being
9d455f77
AB
53 ;; wrapped in a layer. If you need some configuration for these
54 ;; packages then consider to create a layer, you can also put the
271181b4 55 ;; configuration in `dotspacemacs/user-config'.
9d455f77 56 dotspacemacs-additional-packages '()
8068706c
AB
57 ;; A list of packages and/or extensions that will not be install and loaded.
58 dotspacemacs-excluded-packages '()
59 ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
60 ;; are declared in a layer which is not a member of
271181b4 61 ;; the list `dotspacemacs-configuration-layers'. (default t)
8068706c 62 dotspacemacs-delete-orphan-packages t))
a41dc7e9
AB
63
64(defun dotspacemacs/init ()
8068706c
AB
65 "Initialization function.
66This function is called at the very startup of Spacemacs initialization
271181b4
AB
67before layers configuration.
68You should not put any user code in there besides modifying the variable
69values."
8068706c
AB
70 ;; This setq-default sexp is an exhaustive list of all the supported
71 ;; spacemacs settings.
72 (setq-default
271181b4
AB
73 ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
74 ;; possible. Set it to nil if you have no way to use HTTPS in your
75 ;; environment, otherwise it is strongly recommended to let it set to t.
76 ;; This variable has no effect if Emacs is launched with the parameter
77 ;; `--insecure' which forces the value of this variable to nil.
78 ;; (default t)
79 dotspacemacs-elpa-https t
80 ;; Maximum allowed time in seconds to contact an ELPA repository.
81 dotspacemacs-elpa-timeout 5
82 ;; If non nil then spacemacs will check for updates at startup
83 ;; when the current branch is not `develop'. (default t)
84 dotspacemacs-check-for-update t
85 ;; One of `vim', `emacs' or `hybrid'. Evil is always enabled but if the
86 ;; variable is `emacs' then the `holy-mode' is enabled at startup. `hybrid'
87 ;; uses emacs key bindings for vim's insert mode, but otherwise leaves evil
88 ;; unchanged. (default 'vim)
73b4f2fc 89 dotspacemacs-editing-style 'vim
271181b4 90 ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
73b4f2fc 91 dotspacemacs-verbose-loading nil
74f45a15
AB
92 ;; Specify the startup banner. Default value is `official', it displays
93 ;; the official spacemacs logo. An integer value is the index of text
94 ;; banner, `random' chooses a random text banner in `core/banners'
9d455f77
AB
95 ;; directory. A string value must be a path to an image format supported
96 ;; by your Emacs build.
271181b4 97 ;; If the value is nil then no banner is displayed. (default 'official)
74f45a15 98 dotspacemacs-startup-banner 'official
73b4f2fc 99 ;; List of items to show in the startup buffer. If nil it is disabled.
271181b4
AB
100 ;; Possible values are: `recents' `bookmarks' `projects'.
101 ;; (default '(recents projects))
73b4f2fc 102 dotspacemacs-startup-lists '(recents projects)
271181b4
AB
103 ;; Number of recent files to show in the startup buffer. Ignored if
104 ;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)
105 dotspacemacs-startup-recent-list-size 5
8068706c
AB
106 ;; List of themes, the first of the list is loaded when spacemacs starts.
107 ;; Press <SPC> T n to cycle to the next theme in the list (works great
108 ;; with 2 themes variants, one dark and one light)
271181b4 109 dotspacemacs-themes '(spacemacs-dark
9d455f77 110 spacemacs-light
271181b4
AB
111 solarized-light
112 solarized-dark
113 leuven
9d455f77
AB
114 monokai
115 zenburn)
271181b4 116 ;; If non nil the cursor color matches the state color in GUI Emacs.
8068706c
AB
117 dotspacemacs-colorize-cursor-according-to-state t
118 ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
119 ;; size to make separators look not too crappy.
ecac7742 120 dotspacemacs-default-font '("Source Code Pro"
271181b4 121 :size 13
8068706c
AB
122 :weight normal
123 :width normal
124 :powerline-scale 1.1)
125 ;; The leader key
126 dotspacemacs-leader-key "SPC"
73b4f2fc 127 ;; The leader key accessible in `emacs state' and `insert state'
271181b4 128 ;; (default "M-m")
73b4f2fc 129 dotspacemacs-emacs-leader-key "M-m"
8068706c 130 ;; Major mode leader key is a shortcut key which is the equivalent of
271181b4 131 ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
8068706c 132 dotspacemacs-major-mode-leader-key ","
271181b4
AB
133 ;; Major mode leader key accessible in `emacs state' and `insert state'.
134 ;; (default "C-M-m)
73b4f2fc 135 dotspacemacs-major-mode-emacs-leader-key "C-M-m"
271181b4
AB
136 ;; These variables control whether separate commands are bound in the GUI to
137 ;; the key pairs C-i, TAB and C-m, RET.
138 ;; Setting it to a non-nil value, allows for separate commands under <C-i>
139 ;; and TAB or <C-m> and RET.
140 ;; In the terminal, these pairs are generally indistinguishable, so this only
141 ;; works in the GUI. (default nil)
142 dotspacemacs-distinguish-gui-tab nil
143 ;; (Not implemented) dotspacemacs-distinguish-gui-ret nil
8068706c
AB
144 ;; The command key used for Evil commands (ex-commands) and
145 ;; Emacs commands (M-x).
146 ;; By default the command key is `:' so ex-commands are executed like in Vim
147 ;; with `:' and Emacs commands are executed with `<leader> :'.
148 dotspacemacs-command-key ":"
271181b4
AB
149 ;; If non nil `Y' is remapped to `y$'. (default t)
150 dotspacemacs-remap-Y-to-y$ t
151 ;; Name of the default layout (default "Default")
152 dotspacemacs-default-layout-name "Default"
153 ;; If non nil the default layout name is displayed in the mode-line.
154 ;; (default nil)
155 dotspacemacs-display-default-layout nil
156 ;; If non nil then the last auto saved layouts are resume automatically upon
157 ;; start. (default nil)
158 dotspacemacs-auto-resume-layouts nil
3e1228d0
AB
159 ;; Location where to auto-save files. Possible values are `original' to
160 ;; auto-save the file in-place, `cache' to auto-save the file to another
161 ;; file stored in the cache directory and `nil' to disable auto-saving.
271181b4 162 ;; (default 'cache)
3e1228d0 163 dotspacemacs-auto-save-file-location 'cache
271181b4
AB
164 ;; Maximum number of rollback slots to keep in the cache. (default 5)
165 dotspacemacs-max-rollback-slots 5
9d455f77 166 ;; If non nil then `ido' replaces `helm' for some commands. For now only
271181b4
AB
167 ;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and
168 ;; `find-contrib-file' (SPC f e c) are replaced. (default nil)
169 dotspacemacs-use-ido nil
170 ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
171 dotspacemacs-helm-resize nil
172 ;; if non nil, the helm header is hidden when there is only one source.
173 ;; (default nil)
174 dotspacemacs-helm-no-header nil
175 ;; define the position to display `helm', options are `bottom', `top',
176 ;; `left', or `right'. (default 'bottom)
177 dotspacemacs-helm-position 'bottom
9d455f77 178 ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
271181b4 179 ;; several times cycle between the kill ring content. (default nil)
9d455f77 180 dotspacemacs-enable-paste-micro-state nil
271181b4
AB
181 ;; Which-key delay in seconds. The which-key buffer is the popup listing
182 ;; the commands bound to the current keystroke sequence. (default 0.4)
183 dotspacemacs-which-key-delay 0.4
184 ;; Which-key frame position. Possible values are `right', `bottom' and
185 ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
186 ;; right; if there is insufficient space it displays it at the bottom.
187 ;; (default 'bottom)
188 dotspacemacs-which-key-position 'bottom
8068706c
AB
189 ;; If non nil a progress bar is displayed when spacemacs is loading. This
190 ;; may increase the boot time on some systems and emacs builds, set it to
271181b4 191 ;; nil to boost the loading time. (default t)
8068706c 192 dotspacemacs-loading-progress-bar t
271181b4 193 ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
8068706c
AB
194 ;; (Emacs 24.4+ only)
195 dotspacemacs-fullscreen-at-startup nil
196 ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
271181b4 197 ;; Use to disable fullscreen animations in OSX. (default nil)
8068706c
AB
198 dotspacemacs-fullscreen-use-non-native nil
199 ;; If non nil the frame is maximized when Emacs starts up.
200 ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
271181b4 201 ;; (default nil) (Emacs 24.4+ only)
8068706c
AB
202 dotspacemacs-maximized-at-startup nil
203 ;; A value from the range (0..100), in increasing opacity, which describes
204 ;; the transparency level of a frame when it's active or selected.
271181b4 205 ;; Transparency can be toggled through `toggle-transparency'. (default 90)
8068706c
AB
206 dotspacemacs-active-transparency 90
207 ;; A value from the range (0..100), in increasing opacity, which describes
208 ;; the transparency level of a frame when it's inactive or deselected.
271181b4 209 ;; Transparency can be toggled through `toggle-transparency'. (default 90)
8068706c 210 dotspacemacs-inactive-transparency 90
271181b4 211 ;; If non nil unicode symbols are displayed in the mode line. (default t)
8068706c
AB
212 dotspacemacs-mode-line-unicode-symbols t
213 ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
214 ;; scrolling overrides the default behavior of Emacs which recenters the
271181b4 215 ;; point when it reaches the top or bottom of the screen. (default t)
8068706c 216 dotspacemacs-smooth-scrolling t
271181b4
AB
217 ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
218 ;; derivatives. If set to `relative', also turns on relative line numbers.
219 ;; (default nil)
220 dotspacemacs-line-numbers nil
8068706c 221 ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
271181b4 222 ;; (default nil)
8068706c 223 dotspacemacs-smartparens-strict-mode nil
271181b4
AB
224 ;; Select a scope to highlight delimiters. Possible values are `any',
225 ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
226 ;; emphasis the current one). (default 'all)
9d455f77 227 dotspacemacs-highlight-delimiters 'all
8068706c 228 ;; If non nil advises quit functions to keep server open when quitting.
271181b4 229 ;; (default nil)
8068706c 230 dotspacemacs-persistent-server nil
9d455f77
AB
231 ;; List of search tool executable names. Spacemacs uses the first installed
232 ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
271181b4 233 ;; (default '("ag" "pt" "ack" "grep"))
9d455f77 234 dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
8068706c
AB
235 ;; The default package repository used if no explicit repository has been
236 ;; specified with an installed package.
271181b4 237 ;; Not used for now. (default nil)
5828c5c7 238 dotspacemacs-default-package-repository nil
271181b4
AB
239 ;; Delete whitespace while saving buffer. Possible values are `all',
240 ;; `trailing', `changed' or `nil'. Default is `changed' (cleanup whitespace
241 ;; on changed lines) (default 'changed)
242 dotspacemacs-whitespace-cleanup 'changed
5828c5c7 243 ;; Disable setting the cursor color according to states
271181b4
AB
244 ;; dotspacemacs-colorize-cursor-according-to-state nil
245 ))
246
247(defun dotspacemacs/user-init ()
248 "Initialization function for user code.
249It is called immediately after `dotspacemacs/init'. You are free to put almost any
250user code here. The exception is org related code, which should be placed in
251`dotspacemacs/user-config'."
a41dc7e9
AB
252 )
253
271181b4
AB
254(defun dotspacemacs/user-config ()
255 "Configuration function for user code.
256This function is called at the very end of Spacemacs initialization after
257layers configuration. You are free to put any user code."
258 ;; (setq powerline-default-separator nil)
5828c5c7
AB
259 (setq TeX-PDF-mode t
260 Tex-command-default 'TeX)
47f44a8d
AB
261 (setq undo-tree-auto-save-history t
262 undo-tree-history-directory-alist
263 `(("." . ,(concat spacemacs-cache-directory "undo"))))
264 (unless (file-exists-p (concat spacemacs-cache-directory "undo"))
265 (make-directory (concat spacemacs-cache-directory "undo")))
266
0050153c
AB
267 (setq TeX-view-program-selection
268 '(((output-dvi style-pstricks)
73b4f2fc
AB
269 "dvips and gv")
270 (output-dvi "xdvi")
271 (output-pdf "zathura")
272 (output-html "xdg-open")))
0050153c
AB
273
274 (setq TeX-view-program-list
275 '(("zathura"
276 ("zathura" (mode-io-correlate "-sync.sh")
277 " "
278 (mode-io-correlate "%n:1:%t ")
279 "%o"))))
7375f958 280
21281248 281 ;; set the erc nick completion postfix to ": "
271181b4 282 ;; (setq erc-pcomplete-nick-postfix ", ")
3e1228d0
AB
283
284 ;; Suppress ad-handle-definition warnings
285 ;; (annoying "`tramp-read-passwd' got redefined" warning on startup)
271181b4 286 ;; (setq ad-redefinition-action 'accept)
3e1228d0
AB
287
288 (define-key evil-motion-state-map ";" 'evil-ex)
289
290 ;; not very effective because of dotspacemacs-command-key
291 ;; (define-key evil-motion-state-map ":" 'evil-repeat-find-char)
292
293 ;; enable when using zenburn
294 ;; (custom-set-faces '(evil-search-highlight-persist-highlight-face ((t (:background "#5F5F5F")))))
271181b4
AB
295
296 ;; set Eclipse and Eclim paths
297 ;; (setq eclim-eclipse-dirs "/usr/lib/eclipse"
298 ;; eclim-executable "/usr/lib/eclipse/eclim")
299
300 ;; required for having working previews when using ranger
301 ;; (add-hook 'dired-mode-hook 'evil-emacs-state)
302
303 ;; (add-hook 'mpc-mode-hook 'evil-emacs-state)
304 ;; (add-hook 'simple-mpc-mode-hook 'evil-emacs-state)
305 ;; (add-hook 'simple-mpc-current-playlist-mode-hook 'evil-emacs-state)
a41dc7e9
AB
306)
307
8068706c 308;; Do not write anything past this comment. This is where Emacs will
a41dc7e9 309;; auto-generate custom variable definitions.
5828c5c7
AB
310(custom-set-variables
311 ;; custom-set-variables was added by Custom.
312 ;; If you edit it by hand, you could mess it up, so be careful.
313 ;; Your init file should contain only one such instance.
314 ;; If there is more than one, they won't work right.
3e1228d0
AB
315 '(package-selected-packages
316 (quote
271181b4 317 (orgit markdown-mode gitignore-mode flycheck farmhouse-theme company badwolf-theme auctex-latexmk auctex popup avy highlight helm helm-core package-build bind-key evil ws-butler persp-mode lorem-ipsum hl-todo help-fns+ evil-indent-plus ace-jump-helm-line bind-map zonokai-theme zenburn-theme zen-and-art-theme xkcd window-numbering which-key volatile-highlights vi-tilde-fringe use-package underwater-theme ujelly-theme twilight-theme twilight-bright-theme twilight-anti-bright-theme tronesque-theme toxi-theme toc-org tao-theme tangotango-theme tango-plus-theme tango-2-theme sunny-day-theme sublime-themes subatomic256-theme subatomic-theme stekene-theme spray spacemacs-theme spaceline spacegray-theme soothe-theme soft-stone-theme soft-morning-theme soft-charcoal-theme smyx-theme smooth-scrolling smeargle simple-mpc shell-pop seti-theme reverse-theme restart-emacs ranger rainbow-delimiters quelpa pyvenv pytest pyenv-mode purple-haze-theme professional-theme popwin planet-theme pip-requirements phoenix-dark-pink-theme phoenix-dark-mono-theme pcre2el pastels-on-dark-theme paradox page-break-lines organic-green-theme org-repo-todo org-present org-pomodoro org-plus-contrib org-bullets open-junk-file oldlace-theme occidental-theme obsidian-theme noctilux-theme niflheim-theme neotree naquadah-theme mustang-theme multi-term move-text monochrome-theme molokai-theme moe-theme mmm-mode minimal-theme material-theme markdown-toc magit-gitflow macrostep lush-theme linum-relative light-soap-theme leuven-theme jbeans-theme jazz-theme ir-black-theme inkpot-theme info+ indent-guide ido-vertical-mode hy-mode hungry-delete htmlize highlight-parentheses highlight-numbers highlight-indentation heroku-theme hemisu-theme helm-themes helm-swoop helm-pydoc helm-projectile helm-mode-manager helm-make helm-gitignore helm-flyspell helm-flx helm-descbinds helm-company helm-c-yasnippet helm-ag hc-zenburn-theme gruvbox-theme gruber-darker-theme grandshell-theme gotham-theme google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger gh-md gandalf-theme flycheck-pos-tip flx-ido flatui-theme flatland-theme firebelly-theme fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-jumper evil-indent-textobject evil-iedit-state evil-exchange evil-escape evil-args evil-anzu eval-sexp-fu espresso-theme eshell-prompt-extras esh-help erc-yt erc-view-log erc-social-graph erc-image erc-hl-nicks emacs-eclim elisp-slime-nav django-theme disaster define-word darktooth-theme darkmine-theme darkburn-theme dakrone-theme cython-mode cyberpunk-theme company-statistics company-quickhelp company-c-headers company-auctex company-anaconda colorsarenice-theme color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized cmake-mode clues-theme clean-aindent-mode clang-format circe cherry-blossom-theme busybee-theme buffer-move bubbleberry-theme birds-of-paradise-plus-theme auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile apropospriate-theme anti-zenburn-theme ample-zen-theme ample-theme alect-themes aggressive-indent afternoon-theme adaptive-wrap ace-window ace-link ac-ispell))))
5828c5c7
AB
318(custom-set-faces
319 ;; custom-set-faces was added by Custom.
320 ;; If you edit it by hand, you could mess it up, so be careful.
321 ;; Your init file should contain only one such instance.
322 ;; If there is more than one, they won't work right.
3e1228d0
AB
323 '(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
324 '(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil)))))