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