aboutsummaryrefslogtreecommitdiff
path: root/config/emacs/init.el
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-03-26 23:01:22 +0100
committerNicholas Rodrigues Lordello <[email protected]>2025-03-26 23:01:22 +0100
commitbcfbc0f78652c044a450df64d38b4d74e1c15435 (patch)
tree84149871f75764d217e26c575b5573e4fddeff22 /config/emacs/init.el
parent2a11d2649bcefe819636600e69a7e5972d48408d (diff)
Add Support for Local Initialization
We optionally load a `local-init.el` file to allow for local initialization code to run that we do not want to commit to Git. Unrelated small change: we specify a tree sitter loading directory in the `~/.cache/emacs` root, to the same tune as our other directory customizations where we move files that are not meant to be added to source control to the `~/.cache` directory.
Diffstat (limited to 'config/emacs/init.el')
-rw-r--r--config/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el
index 29f3a20..f7f5435 100644
--- a/config/emacs/init.el
+++ b/config/emacs/init.el
@@ -21,3 +21,7 @@
(load "~/.config/emacs/flavours/development.el" nil t))
(when (eq system-type 'darwin)
(load "~/.config/emacs/flavours/macos.el" nil t))
+
+(let ((local-init "~/.config/emacs/local-init.el"))
+ (when (file-exists-p local-init)
+ (load local-init nil t)))