[sxhkd] add shortcut for moving window to prev/next desktop
[~bandali/configs] / spacemacs / .spacemacs
1 ;; -*- mode: emacs-lisp -*-
2 ;; This file is loaded by Spacemacs at startup.
3 ;; It must be stored in your home directory.
4
5 (defun dotspacemacs/layers ()
6 "Configuration Layers declaration."
7 (setq-default
8 ;; List of additional paths where to look for configuration layers.
9 ;; Paths must have a trailing slash (ie. `~/.mycontribs/')
10 dotspacemacs-configuration-layer-path '()
11 ;; List of configuration layers to load. If it is the symbol `all' instead
12 ;; of a list then all discovered layers will be installed.
13 dotspacemacs-configuration-layers
14 '(
15 ;; ----------------------------------------------------------------
16 ;; Example of useful layers you may want to use right away.
17 ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
18 ;; <M-m f e R> (Emacs style) to install them.
19 ;; ----------------------------------------------------------------
20 auto-completion
21 better-defaults
22 emacs-lisp
23 (git :variables
24 git-gutter-use-fringe t)
25 markdown
26 org
27 shell
28 syntax-checking
29 mu4e
30 notmuch
31 evil
32 c-c++
33 auctex
34 ;; html
35 ;; clojure
36 ;; (haskell :variables '(haskell-enable-hindent-style "chris-done"
37 ;; haskell-enable-shm-support t))
38 ;; rust
39 shell
40 ;; themes-megapack
41 )
42 ;; List of additional packages that will be installed wihout being
43 ;; wrapped in a layer. If you need some configuration for these
44 ;; packages then consider to create a layer, you can also put the
45 ;; configuration in `dotspacemacs/config'.
46 dotspacemacs-additional-packages '()
47 ;; A list of packages and/or extensions that will not be install and loaded.
48 dotspacemacs-excluded-packages '()
49 ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that
50 ;; are declared in a layer which is not a member of
51 ;; the list `dotspacemacs-configuration-layers'
52 dotspacemacs-delete-orphan-packages t))
53
54 (defun dotspacemacs/init ()
55 "Initialization function.
56 This function is called at the very startup of Spacemacs initialization
57 before layers configuration."
58 ;; This setq-default sexp is an exhaustive list of all the supported
59 ;; spacemacs settings.
60 (setq-default
61 ;; Either `vim' or `emacs'. Evil is always enabled but if the variable
62 ;; is `emacs' then the `holy-mode' is enabled at startup.
63 dotspacemacs-editing-style 'vim
64 ;; If non nil output loading progress in `*Messages*' buffer.
65 dotspacemacs-verbose-loading nil
66 ;; Specify the startup banner. Default value is `official', it displays
67 ;; the official spacemacs logo. An integer value is the index of text
68 ;; banner, `random' chooses a random text banner in `core/banners'
69 ;; directory. A string value must be a path to an image format supported
70 ;; by your Emacs build.
71 ;; If the value is nil then no banner is displayed.
72 dotspacemacs-startup-banner 'official
73 ;; List of items to show in the startup buffer. If nil it is disabled.
74 ;; Possible values are: `recents' `bookmarks' `projects'."
75 dotspacemacs-startup-lists '(recents projects)
76 ;; List of themes, the first of the list is loaded when spacemacs starts.
77 ;; Press <SPC> T n to cycle to the next theme in the list (works great
78 ;; with 2 themes variants, one dark and one light)
79 dotspacemacs-themes '(leuven
80 gotham
81 solarized-light
82 solarized-dark
83 spacemacs-light
84 spacemacs-dark
85 monokai
86 zenburn)
87 ;; If non nil the cursor color matches the state color.
88 dotspacemacs-colorize-cursor-according-to-state t
89 ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
90 ;; size to make separators look not too crappy.
91 dotspacemacs-default-font '("Source Code Pro"
92 :size 14
93 :weight normal
94 :width normal
95 :powerline-scale 1.1)
96 ;; The leader key
97 dotspacemacs-leader-key "SPC"
98 ;; The leader key accessible in `emacs state' and `insert state'
99 dotspacemacs-emacs-leader-key "M-m"
100 ;; Major mode leader key is a shortcut key which is the equivalent of
101 ;; pressing `<leader> m`. Set it to `nil` to disable it.
102 dotspacemacs-major-mode-leader-key ","
103 ;; Major mode leader key accessible in `emacs state' and `insert state'
104 dotspacemacs-major-mode-emacs-leader-key "C-M-m"
105 ;; The command key used for Evil commands (ex-commands) and
106 ;; Emacs commands (M-x).
107 ;; By default the command key is `:' so ex-commands are executed like in Vim
108 ;; with `:' and Emacs commands are executed with `<leader> :'.
109 dotspacemacs-command-key ":"
110 ;; If non nil then `ido' replaces `helm' for some commands. For now only
111 ;; `find-files' (SPC f f) is replaced.
112 dotspacemacs-use-ido t
113 ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
114 ;; several times cycle between the kill ring content.
115 dotspacemacs-enable-paste-micro-state nil
116 ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing
117 ;; the commands bound to the current keystrokes.
118 dotspacemacs-guide-key-delay 0.4
119 ;; If non nil a progress bar is displayed when spacemacs is loading. This
120 ;; may increase the boot time on some systems and emacs builds, set it to
121 ;; nil ;; to boost the loading time.
122 dotspacemacs-loading-progress-bar t
123 ;; If non nil the frame is fullscreen when Emacs starts up.
124 ;; (Emacs 24.4+ only)
125 dotspacemacs-fullscreen-at-startup nil
126 ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
127 ;; Use to disable fullscreen animations in OSX."
128 dotspacemacs-fullscreen-use-non-native nil
129 ;; If non nil the frame is maximized when Emacs starts up.
130 ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
131 ;; (Emacs 24.4+ only)
132 dotspacemacs-maximized-at-startup nil
133 ;; A value from the range (0..100), in increasing opacity, which describes
134 ;; the transparency level of a frame when it's active or selected.
135 ;; Transparency can be toggled through `toggle-transparency'.
136 dotspacemacs-active-transparency 90
137 ;; A value from the range (0..100), in increasing opacity, which describes
138 ;; the transparency level of a frame when it's inactive or deselected.
139 ;; Transparency can be toggled through `toggle-transparency'.
140 dotspacemacs-inactive-transparency 90
141 ;; If non nil unicode symbols are displayed in the mode line.
142 dotspacemacs-mode-line-unicode-symbols t
143 ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
144 ;; scrolling overrides the default behavior of Emacs which recenters the
145 ;; point when it reaches the top or bottom of the screen.
146 dotspacemacs-smooth-scrolling t
147 ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
148 dotspacemacs-smartparens-strict-mode nil
149 ;; Select a scope to highlight delimiters. Possible value is `all',
150 ;; `current' or `nil'. Default is `all'
151 dotspacemacs-highlight-delimiters 'all
152 ;; If non nil advises quit functions to keep server open when quitting.
153 dotspacemacs-persistent-server nil
154 ;; List of search tool executable names. Spacemacs uses the first installed
155 ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
156 dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
157 ;; The default package repository used if no explicit repository has been
158 ;; specified with an installed package.
159 ;; Not used for now.
160 dotspacemacs-default-package-repository nil
161 ;; Disable setting the cursor color according to states
162 dotspacemacs-colorize-cursor-according-to-state nil
163 )
164 ;; User initialization goes here
165 )
166
167 (defun dotspacemacs/config ()
168 "Configuration function.
169 This function is called at the very end of Spacemacs initialization after
170 layers configuration."
171 (setq powerline-default-separator nil)
172 (setq TeX-PDF-mode t
173 Tex-command-default 'TeX)
174 (setq undo-tree-auto-save-history t
175 undo-tree-history-directory-alist
176 `(("." . ,(concat spacemacs-cache-directory "undo"))))
177 (unless (file-exists-p (concat spacemacs-cache-directory "undo"))
178 (make-directory (concat spacemacs-cache-directory "undo")))
179
180 (setq TeX-view-program-selection
181 '(((output-dvi style-pstricks)
182 "dvips and gv")
183 (output-dvi "xdvi")
184 (output-pdf "zathura")
185 (output-html "xdg-open")))
186
187 (setq TeX-view-program-list
188 '(("zathura"
189 ("zathura" (mode-io-correlate "-sync.sh")
190 " "
191 (mode-io-correlate "%n:1:%t ")
192 "%o"))))
193
194 (advice-add #'magit-key-mode-popup-committing :after
195 (lambda ()
196 (magit-key-mode-toggle-option (quote committing) "--verbose")))
197 )
198
199 ;; Do not write anything past this comment. This is where Emacs will
200 ;; auto-generate custom variable definitions.
201
202
203 (custom-set-variables
204 ;; custom-set-variables was added by Custom.
205 ;; If you edit it by hand, you could mess it up, so be careful.
206 ;; Your init file should contain only one such instance.
207 ;; If there is more than one, they won't work right.
208 '(ac-ispell-requires 4)
209 '(ahs-case-fold-search nil)
210 '(ahs-default-range (quote ahs-range-whole-buffer))
211 '(ahs-idle-interval 0.25)
212 '(ahs-idle-timer 0 t)
213 '(ahs-inhibit-face-list nil)
214 '(ring-bell-function (quote ignore) t)
215 '(send-mail-function (quote smtpmail-send-it)))
216 (custom-set-faces
217 ;; custom-set-faces was added by Custom.
218 ;; If you edit it by hand, you could mess it up, so be careful.
219 ;; Your init file should contain only one such instance.
220 ;; If there is more than one, they won't work right.
221 )