diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-19 12:28:35 -0600 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-19 12:28:35 -0600 |
commit | 1a377245bb581d2f54e136a8870288e5ba2406b3 (patch) | |
tree | 806258585b86357b916f555b2246cc3f457fc363 /common/.config/emacs/init.el.org | |
parent | 9014c59efde17fd5e54ff2e865ce33ba76155b4f (diff) |
system changes
Diffstat (limited to 'common/.config/emacs/init.el.org')
-rw-r--r-- | common/.config/emacs/init.el.org | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 4f13b21..a1df3f8 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -1,5 +1,24 @@ #+title: Emacs Configuration +Force the use of a =custom.el= file instead of appending to =init.el=. +#+begin_src emacs-lisp + (defun jj/force-custom-file () + (setq custom-file (concat user-emacs-directory "custom.el")) + (when (file-exists-p custom-file) + (load custom-file))) +#+end_src + +Use the correct =PATH= variable. +#+begin_src emacs-lisp + (defun jj/set-exec-path-from-shell-PATH () + (interactive) + (let ((path-from-shell (replace-regexp-in-string + "[ \t\n]*$" "" (shell-command-to-string + "$SHELL --login -c 'echo $PATH'")))) + (setenv "PATH" path-from-shell) + (setq exec-path (split-string path-from-shell path-separator)))) +#+end_src + Load files for config. #+begin_src emacs-lisp :tangle ~/.config/emacs/init.el :mkdirp yes (load "~/.config/emacs/force-custom-file.el") |