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 | |
parent | 9014c59efde17fd5e54ff2e865ce33ba76155b4f (diff) |
system changes
-rw-r--r-- | common/.config/emacs/init.el.org | 19 | ||||
-rw-r--r-- | common/.config/emacs/languages.el.org | 6 |
2 files changed, 19 insertions, 6 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") diff --git a/common/.config/emacs/languages.el.org b/common/.config/emacs/languages.el.org index 8f07440..bb84ff5 100644 --- a/common/.config/emacs/languages.el.org +++ b/common/.config/emacs/languages.el.org @@ -84,12 +84,6 @@ Install Lua support and run =eglot= on Lua files. (add-hook 'lua-mode-hook 'jj/eglot-setup)) #+end_src -Better Lisp editing with =lispy=. -#+begin_src emacs-lisp - (use-package lispy - :hook (emacs-lisp-mode . lispy-mode)) -#+end_src - Better parentheses handling in lisp with =parinfer-rust-mode=. #+begin_src emacs-lisp (use-package parinfer-rust-mode |