From 63357cccdbf221388b67c161399f84b9320e596b Mon Sep 17 00:00:00 2001 From: jjanzen Date: Thu, 9 Jan 2025 21:38:54 -0600 Subject: system changes --- common/.config/emacs/init.el.org | 42 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'common/.config/emacs/init.el.org') diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index c9d35e0..4419156 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -1,27 +1,6 @@ #+title: Emacs Configuration * Early Setup -Force the use of a =custom.el= file instead of appending to =init.el=. -#+begin_src emacs-lisp - (setq custom-file (concat user-emacs-directory "custom.el")) - (when (file-exists-p custom-file) - (load custom-file)) -#+end_src - -Make Emacs use the correct =PATH= variable as macOS fails to load the =PATH= variable from my login shell. -#+begin_src emacs-lisp - (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 - -Suppress native compilation warnings and errors. Native compilation seems to be a little broken on macOS and the warnings are just annoying. -#+begin_src emacs-lisp :tangle yes - (setq native-comp-async-report-warnings-errors 'silent) -#+end_src - Bootstrap package management. I use =elpaca= with =use-package= to allow asynchronous declarative package management. #+begin_src emacs-lisp (defvar elpaca-installer-version 0.8) @@ -69,6 +48,27 @@ Bootstrap package management. I use =elpaca= with =use-package= to allow asynchr (elpaca-use-package-mode)) #+end_src +Force the use of a =custom.el= file instead of appending to =init.el=. +#+begin_src emacs-lisp + (setq custom-file (concat user-emacs-directory "custom.el")) + (when (file-exists-p custom-file) + (load custom-file)) +#+end_src + +Make Emacs use the correct =PATH= variable as macOS fails to load the =PATH= variable from my login shell. +#+begin_src emacs-lisp + (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 + +Suppress native compilation warnings and errors. Native compilation seems to be a little broken on macOS and the warnings are just annoying. +#+begin_src emacs-lisp :tangle yes + ;; (setq native-comp-async-report-warnings-errors 'silent) +#+end_src + * Appearance Set up fonts. I use Source Code Pro (Nerd Font) for monospace and Computer Modern for variable width. -- cgit v1.2.3