-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.el
50 lines (36 loc) · 1.74 KB
/
config.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
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(defun my-init-load-path ()
(add-load-path! "lisp"))
(my-init-load-path)
(setq my-font-size 16)
(setq doom-font (font-spec :family "Iosevka Nerd Font Mono" :size my-font-size :weight 'normal)
doom-emoji-font (font-spec :family "Noto Color Emoji"))
(setq nerd-icons-font-names '("SymbolsNerdFontMono-Regular.ttf"))
(add-hook! 'after-setting-font-hook
(set-fontset-font t 'han (font-spec :family "Sarasa Mono SC" :size my-font-size :weight 'normal))
(set-fontset-font t 'han (font-spec :family "Sarasa Mono J" :size my-font-size :weight 'normal) nil 'append)
(set-fontset-font t 'cjk-misc (font-spec :family "Sarasa Mono SC" :size my-font-size :weight 'normal))
(set-fontset-font t 'cjk-misc (font-spec :family "Sarasa Mono J" :size my-font-size :weight 'normal) nil 'append)
(set-fontset-font t 'kana (font-spec :family "Sarasa Mono J" :size my-font-size :weight 'normal)))
(use-package! solarized-theme)
(use-package! color-theme-sanityinc-tomorrow
:config (setq doom-theme 'sanityinc-tomorrow-night))
(let ((theme-conf-file "~/.config/emacs-scripts/load-theme.el"))
(when (file-exists-p theme-conf-file)
(load-file theme-conf-file)))
(defun my-doom-reload ()
(interactive)
;; New packages need reload-packages to update the load path.
(doom/reload)
(doom/reload-packages)
(doom/reload)
)
;; Force general to auto-unbind keys rather than throw Key sequence ... starts with non-prefix key ... errors
(general-auto-unbind-keys)
(map! :leader
"C-r" #'my-doom-reload)
(setq display-line-numbers-type 'relative)
(after! which-key (setq which-key-idle-delay 0.5))
(setq org-directory "~/org/")
(after! persp-mode
(setq persp-emacsclient-init-frame-behaviour-override "main"))