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