diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-09 21:38:54 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-09 21:38:54 -0600 |
commit | 63357cccdbf221388b67c161399f84b9320e596b (patch) | |
tree | 4b99cb81ecfc14023bf493969516ebc89aee0bf5 | |
parent | 71f7680451efb665bf2ad21bc51da3d95b18e7df (diff) |
system changes
-rw-r--r-- | common/.config/emacs/init.el.org | 42 |
1 files changed, 21 insertions, 21 deletions
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. |