-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.el
67 lines (56 loc) · 2.44 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
(defvar myspacemacs-fixed-font
(if (eq system-type 'darwin) "Fira Code" "Fira Mono")
"Monospace font.")
(defvar myspacemacs-font-size nil
"Base font size.")
(defvar myspacemacs-max-column 79
"Maximum columns for each line.")
(defconst myspacemacs-path (file-name-directory load-file-name)
"Base directory for .spacemacs.d path.")
(defvar myspacemacs-show-icons
(and (display-graphic-p) (member "all-the-icons" (font-family-list)))
"Whether icons can be shown. Use all-the-icons-install-fonts to install.")
(defvar myspacemacs-powerline-scale 1.4
"Scale adjustment for mode line.")
(defvar myspacemacs-prog-based-modes '(conf-mode
conf-unix-mode
conf-space-mode
dockerfile-mode
editorconfig-conf-mode
evil-tutor-mode
json-mode
gitconfig-mode
gitignore-mode
nxml-mode
prog-mode
react-mode
snippet-mode
typescript-mode
web-mode
yaml-mode)
"List of prog based modes, including prog mode itself.")
(defvar myspacemacs-variable-font
(if (fboundp 'mac-auto-operator-composition-mode)
"Fira Sans"
"DejaVu Sans")
"Non-monospace font.")
;; Set server name to gui if GUI
(when (display-graphic-p)
(setq server-name "gui"))
;; Enable ligatures if available
(when (fboundp 'mac-auto-operator-composition-mode)
(mac-auto-operator-composition-mode t))
;; Add Homebrew packages to the load-path
(when (and (eq system-type 'darwin) (executable-find "keychain"))
(seq-do
(lambda (x) (apply #'setenv (split-string x "=")))
(seq-filter
(lambda (x) (string-prefix-p "SSH_" x))
(split-string (shell-command-to-string "keychain --eval") "[;\n]+")))
(let ((default-directory "/usr/local/share/emacs/site-lisp/"))
(normal-top-level-add-subdirs-to-load-path)))
;; Load additional libs
(load (concat myspacemacs-path "hooks.el"))
(load (concat myspacemacs-path "keybinds.el"))
(load (concat myspacemacs-path "private.el"))
(load (concat myspacemacs-path "setup.el"))