-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.el
71 lines (50 loc) · 1.79 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(setq
;; Personal information
user-full-name "David Janssen"
user-mail-address "janssen.dhj@gmail.com"
;; Set fonts
doom-font (font-spec :family "Fira Code" :size 14)
doom-variable-pitch-font (font-spec :family "Fira Code" :size 14)
doom-big-font (font-spec :family "Fira Code" :size 16)
;; Allow all themes to be loaded safely
custom-file "./.custom.el"
custom-safe-themes t
projectile-project-search-path '("~/prj/" "~/opt")
;; Turn indentation into something sane
electric-indent-inhibit t
evil-snipe-scope 'whole-visible
evil-escape-key-sequence nil
;; Configure HTML indentation
web-mode-markup-indent-offset 2
browse-url-browser-function #'browse-url-chromium
auth-sources '("~/.authinfo.gpg")
)
(setf (alist-get ?- +ligatures-composition-alist)
(regexp-opt '("-->" "--->" "->-" "-<" "-<-" "-<<" "->" "->>" "-}" "-~" "-:" "-|")))
;; Configure folding
(vimish-fold-global-mode 1) ; Enable persistent folds
;; Configure company-times
(after! company
(setq company-idle-delay .1
company-echo-delay .1
company-minimum-prefix-length 3))
;; Configure magit
(after! magit
;; Hides closed topics
(setq forge-topic-list-limit '(60 . 0)))
;; Define a silly line-drawing function
(defun dj-draw-line ()
(interactive)
(let ((ll (save-excursion (end-of-line) (current-column))))
(insert-char ?- (- 80 ll))))
(map! :map global-map :niv "C-o" #'dj-draw-line)
;; Disable global checking
(global-flycheck-mode 'disable)
(add-hook 'prog-mode-hook (lambda () (flyspell-mode-off)))
(load! "my/haskell")
(load! "my/mail")
(load! "my/tasks")
(load! "my/theme") ;; This is autogenerated by my mksys script
;; Be sure this is the last thing we do
(load! "my/map")