about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el42
1 files changed, 39 insertions, 3 deletions
diff --git a/init.el b/init.el index 66ef6bd..30ec37c 100644 --- a/init.el +++ b/init.el
@@ -7,10 +7,10 @@
7 7
8;;; Macros 8;;; Macros
9(defmacro cuss (var val) 9(defmacro cuss (var val)
10 "Basically `use-package' `:custom' but without either." 10 "Basically `use-package' `:custom' but without either."
11 `(progn 11 `(progn
12 (funcall (or (get ',var 'custom-set) #'set-default) 12 (funcall (or (get ',var 'custom-set) #'set-default)
13 ',var ,val))) 13 ',var ,val)))
14 14
15;;; Files 15;;; Files
16;; keep `emacs-user-directory' tidy 16;; keep `emacs-user-directory' tidy
@@ -139,3 +139,39 @@
139(when (executable-find "cmake") 139(when (executable-find "cmake")
140 (use-package libgit) 140 (use-package libgit)
141 (use-package magit-libgit)) 141 (use-package magit-libgit))
142
143(use-package forge
144 :after magit
145 :custom
146 (forge-owned-accounts '(("duckwork"))))
147
148;; Code formatting
149(use-package format-all
150 :hook
151 (prog-mode . format-all-mode))
152
153;; display
154(add-hook 'prog-mode-hook #'prettify-symbols-mode)
155
156;; parentheses
157(cuss show-paren-style 'mixed)
158(show-paren-mode +1)
159
160(use-package smartparens
161 :init
162 (defun acdw/setup-smartparens ()
163 (require 'smartparens-config)
164 (smartparens-mode +1))
165 :hook
166 (prog-mode . acdw/setup-smartparens))
167
168(use-package rainbow-delimiters
169 :hook
170 (prog-mode . rainbow-delimiters-mode))
171
172;; line numbers
173(add-hook 'prog-mode-hook
174 (if (and (fboundp 'display-line-numbers-mode)
175 (display-graphic-p))
176 #'display-line-numbers-mode
177 #'linum-mode))