git.fiddlerwoaroof.com
Browse code

refactor(emacs): move visual configuration to early-init

Edward authored on 07/11/2021 07:52:09
Showing 2 changed files
... ...
@@ -1,6 +1,12 @@
1 1
 (require 'cl-generic)
2 2
 (cl-defgeneric (setf seq-elt) (store sequence n))
3 3
 
4
+(setq package-user-dir
5
+      (locate-user-emacs-file
6
+        (concat
7
+          (file-name-as-directory "elpa")
8
+          emacs-version)))
9
+
4 10
 (setq default-frame-alist
5 11
       '(
6 12
         (top . 701)
... ...
@@ -14,3 +20,9 @@
14 20
         (ns-appearance . dark)
15 21
         (ns-transparent-titlebar . t)
16 22
         ))
23
+
24
+(when (fboundp 'tool-bar-mode)
25
+  (tool-bar-mode 0))
26
+
27
+(when (fboundp 'scroll-bar-mode)
28
+  (scroll-bar-mode 0))
... ...
@@ -27,11 +27,6 @@
27 27
                (ns-transparent-titlebar . t)))
28 28
        (modify-all-frames-parameters default-frame-alist))
29 29
 
30
-(when (fboundp 'tool-bar-mode)
31
-  (tool-bar-mode 0))
32
-(when (fboundp 'scroll-bar-mode)
33
-  (scroll-bar-mode 0))
34
-
35 30
 (message invocation-name)
36 31
 
37 32
 (let ((default-directory  "~/.emacs.d/lisp/"))