Commit | Line | Data |
---|---|---|
8068706c | 1 | ;; -*- mode: dotspacemacs -*- |
a41dc7e9 AB |
2 | ;; This file is loaded by Spacemacs at startup. |
3 | ;; It must be stored in your home directory. | |
4 | ||
8068706c AB |
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. | |
73b4f2fc AB |
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 | |
3048653e | 32 | (haskell :variables '(haskell-enable-hindent-style "chris-done" |
73b4f2fc | 33 | haskell-enable-shm-support t)) |
c6389de1 AB |
34 | emacs-lisp |
35 | rust | |
af393530 | 36 | themes-megapack |
73b4f2fc | 37 | ) |
8068706c AB |
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)) | |
a41dc7e9 AB |
44 | |
45 | (defun dotspacemacs/init () | |
8068706c AB |
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. | |
51 | (setq-default | |
73b4f2fc AB |
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 | |
74f45a15 AB |
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 | |
73b4f2fc AB |
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) | |
8068706c AB |
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) | |
844475a1 | 72 | dotspacemacs-themes '(solarized-dark solarized-light) |
8068706c AB |
73 | ;; If non nil the cursor color matches the state color. |
74 | dotspacemacs-colorize-cursor-according-to-state t | |
75 | ;; Default font. `powerline-scale' allows to quickly tweak the mode-line | |
76 | ;; size to make separators look not too crappy. | |
ecac7742 | 77 | dotspacemacs-default-font '("Source Code Pro" |
844475a1 | 78 | :size 14 |
8068706c AB |
79 | :weight normal |
80 | :width normal | |
81 | :powerline-scale 1.1) | |
82 | ;; The leader key | |
83 | dotspacemacs-leader-key "SPC" | |
73b4f2fc AB |
84 | ;; The leader key accessible in `emacs state' and `insert state' |
85 | dotspacemacs-emacs-leader-key "M-m" | |
8068706c | 86 | ;; Major mode leader key is a shortcut key which is the equivalent of |
74f45a15 | 87 | ;; pressing `<leader> m`. Set it to `nil` to disable it. |
8068706c | 88 | dotspacemacs-major-mode-leader-key "," |
73b4f2fc AB |
89 | ;; Major mode leader key accessible in `emacs state' and `insert state' |
90 | dotspacemacs-major-mode-emacs-leader-key "C-M-m" | |
8068706c AB |
91 | ;; The command key used for Evil commands (ex-commands) and |
92 | ;; Emacs commands (M-x). | |
93 | ;; By default the command key is `:' so ex-commands are executed like in Vim | |
94 | ;; with `:' and Emacs commands are executed with `<leader> :'. | |
95 | dotspacemacs-command-key ":" | |
74f45a15 AB |
96 | ;; If non nil the paste micro-state is enabled. While enabled pressing `p` |
97 | ;; several times cycle between the kill ring content. | |
98 | dotspacemacs-enable-paste-micro-state t | |
8068706c AB |
99 | ;; Guide-key delay in seconds. The Guide-key is the popup buffer listing |
100 | ;; the commands bound to the current keystrokes. | |
101 | dotspacemacs-guide-key-delay 0.4 | |
102 | ;; If non nil a progress bar is displayed when spacemacs is loading. This | |
103 | ;; may increase the boot time on some systems and emacs builds, set it to | |
104 | ;; nil ;; to boost the loading time. | |
105 | dotspacemacs-loading-progress-bar t | |
106 | ;; If non nil the frame is fullscreen when Emacs starts up. | |
107 | ;; (Emacs 24.4+ only) | |
108 | dotspacemacs-fullscreen-at-startup nil | |
109 | ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. | |
110 | ;; Use to disable fullscreen animations in OSX." | |
111 | dotspacemacs-fullscreen-use-non-native nil | |
112 | ;; If non nil the frame is maximized when Emacs starts up. | |
113 | ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. | |
114 | ;; (Emacs 24.4+ only) | |
115 | dotspacemacs-maximized-at-startup nil | |
116 | ;; A value from the range (0..100), in increasing opacity, which describes | |
117 | ;; the transparency level of a frame when it's active or selected. | |
118 | ;; Transparency can be toggled through `toggle-transparency'. | |
119 | dotspacemacs-active-transparency 90 | |
120 | ;; A value from the range (0..100), in increasing opacity, which describes | |
121 | ;; the transparency level of a frame when it's inactive or deselected. | |
122 | ;; Transparency can be toggled through `toggle-transparency'. | |
123 | dotspacemacs-inactive-transparency 90 | |
124 | ;; If non nil unicode symbols are displayed in the mode line. | |
125 | dotspacemacs-mode-line-unicode-symbols t | |
126 | ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth | |
127 | ;; scrolling overrides the default behavior of Emacs which recenters the | |
128 | ;; point when it reaches the top or bottom of the screen. | |
129 | dotspacemacs-smooth-scrolling t | |
130 | ;; If non-nil smartparens-strict-mode will be enabled in programming modes. | |
131 | dotspacemacs-smartparens-strict-mode nil | |
132 | ;; If non nil advises quit functions to keep server open when quitting. | |
133 | dotspacemacs-persistent-server nil | |
134 | ;; The default package repository used if no explicit repository has been | |
135 | ;; specified with an installed package. | |
136 | ;; Not used for now. | |
5828c5c7 AB |
137 | dotspacemacs-default-package-repository nil |
138 | ;; Disable setting the cursor color according to states | |
73b4f2fc AB |
139 | dotspacemacs-colorize-cursor-according-to-state nil |
140 | ) | |
8068706c | 141 | ;; User initialization goes here |
a41dc7e9 AB |
142 | ) |
143 | ||
144 | (defun dotspacemacs/config () | |
8068706c AB |
145 | "Configuration function. |
146 | This function is called at the very end of Spacemacs initialization after | |
147 | layers configuration." | |
5828c5c7 AB |
148 | (setq powerline-default-separator nil) |
149 | (setq TeX-PDF-mode t | |
150 | Tex-command-default 'TeX) | |
47f44a8d AB |
151 | (setq undo-tree-auto-save-history t |
152 | undo-tree-history-directory-alist | |
153 | `(("." . ,(concat spacemacs-cache-directory "undo")))) | |
154 | (unless (file-exists-p (concat spacemacs-cache-directory "undo")) | |
155 | (make-directory (concat spacemacs-cache-directory "undo"))) | |
156 | ||
0050153c AB |
157 | (setq TeX-view-program-selection |
158 | '(((output-dvi style-pstricks) | |
73b4f2fc AB |
159 | "dvips and gv") |
160 | (output-dvi "xdvi") | |
161 | (output-pdf "zathura") | |
162 | (output-html "xdg-open"))) | |
0050153c AB |
163 | |
164 | (setq TeX-view-program-list | |
165 | '(("zathura" | |
166 | ("zathura" (mode-io-correlate "-sync.sh") | |
167 | " " | |
168 | (mode-io-correlate "%n:1:%t ") | |
169 | "%o")))) | |
7375f958 AB |
170 | |
171 | (advice-add #'magit-key-mode-popup-committing :after | |
172 | (lambda () | |
173 | (magit-key-mode-toggle-option (quote committing) "--verbose"))) | |
a41dc7e9 AB |
174 | ) |
175 | ||
8068706c | 176 | ;; Do not write anything past this comment. This is where Emacs will |
a41dc7e9 | 177 | ;; auto-generate custom variable definitions. |
5828c5c7 AB |
178 | |
179 | ||
180 | (custom-set-variables | |
181 | ;; custom-set-variables was added by Custom. | |
182 | ;; If you edit it by hand, you could mess it up, so be careful. | |
183 | ;; Your init file should contain only one such instance. | |
184 | ;; If there is more than one, they won't work right. | |
185 | '(ac-ispell-requires 4) | |
186 | '(ahs-case-fold-search nil) | |
187 | '(ahs-default-range (quote ahs-range-whole-buffer)) | |
188 | '(ahs-idle-interval 0.25) | |
189 | '(ahs-idle-timer 0 t) | |
190 | '(ahs-inhibit-face-list nil) | |
191 | '(ring-bell-function (quote ignore) t) | |
192 | '(send-mail-function (quote smtpmail-send-it))) | |
193 | (custom-set-faces | |
194 | ;; custom-set-faces was added by Custom. | |
195 | ;; If you edit it by hand, you could mess it up, so be careful. | |
196 | ;; Your init file should contain only one such instance. | |
197 | ;; If there is more than one, they won't work right. | |
198 | ) |