aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2023-12-12 23:18:17 +0100
committerNicholas Rodrigues Lordello <[email protected]>2023-12-12 23:30:29 +0100
commit2d437af6f1f9196b57e474378dac4d81fc70f3c9 (patch)
tree694626bbe24a8890c51a9db550bc299819cb68db
parent28b288cff2ab27a2f22e7561a367702016573570 (diff)
Small refactor and fix first run
-rw-r--r--config/emacs/early-init.el5
-rw-r--r--config/emacs/init.el5
-rw-r--r--config/emacs/macos.el3
3 files changed, 8 insertions, 5 deletions
diff --git a/config/emacs/early-init.el b/config/emacs/early-init.el
index 6201658..124f57b 100644
--- a/config/emacs/early-init.el
+++ b/config/emacs/early-init.el
@@ -1,6 +1,9 @@
;;; Go VROOM-VROOM
(setq gc-cons-threshold 10000000)
+;;; Setup the cache directory nice and early; we use it everywhere
+(make-directory "~/.cache/emacs" t)
+
;;; Configure package.el directories
(setq
package-user-dir "~/.cache/emacs/elpa/"
@@ -13,7 +16,7 @@
;;; Suppress native-comp warnings on startup
(setq warning-suppress-log-types '((comp) (bytecomp)))
-;;; HACK: Work around native compilation errors on macOS...
+;;; HACK: Work around native compilation errors on macOS + Macports...
(if (eq system-type 'darwin)
(setenv "LIBRARY_PATH" "/opt/local/lib/gcc12/gcc/arm64-apple-darwin23/12.3.0")
)
diff --git a/config/emacs/init.el b/config/emacs/init.el
index 22cffc1..e1ac41f 100644
--- a/config/emacs/init.el
+++ b/config/emacs/init.el
@@ -1,6 +1,5 @@
(load "~/.config/emacs/sanemacs.el" nil t)
;;(load "~/.config/emacs/gtd.el" nil t)
-(load "~/.config/emacs/macos.el" nil t)
(use-package which-key
:ensure t
@@ -15,3 +14,7 @@
;;; <https://happihacking.com/blog/posts/2023/dev-containers-emacs/>
;;; 5. Investigate other potential sane Emacs defaults
;;; <https://idiomdrottning.org/bad-emacs-defaults>
+
+;;; Enable ligatures on macOS
+(if (fboundp 'mac-auto-operator-composition-mode)
+ (mac-auto-operator-composition-mode))
diff --git a/config/emacs/macos.el b/config/emacs/macos.el
deleted file mode 100644
index e0d640b..0000000
--- a/config/emacs/macos.el
+++ /dev/null
@@ -1,3 +0,0 @@
-;;; Enable ligatures
-(if (fboundp 'mac-auto-operator-composition-mode)
- (mac-auto-operator-composition-mode))