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