diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-03-26 23:01:22 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-03-26 23:01:22 +0100 |
| commit | bcfbc0f78652c044a450df64d38b4d74e1c15435 (patch) | |
| tree | 84149871f75764d217e26c575b5573e4fddeff22 /config/emacs/init.el | |
| parent | 2a11d2649bcefe819636600e69a7e5972d48408d (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.el | 4 |
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))) |
