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