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