diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-09 16:37:56 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-09 16:37:56 -0600 |
commit | 924ddee521be5b5f7109f34930899627fa3a251b (patch) | |
tree | 0385335b8064b663a0ee0c94c44c3457bce9e7b9 /common | |
parent | 3b5d97e144bce0498730c04a68adba3b305ae66a (diff) |
system changes
Diffstat (limited to 'common')
-rw-r--r-- | common/.config/emacs/init.el.org | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 186d449..c9d35e0 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -10,15 +10,11 @@ Force the use of a =custom.el= file instead of appending to =init.el=. Make Emacs use the correct =PATH= variable as macOS fails to load the =PATH= variable from my login shell. #+begin_src emacs-lisp - (defun jj/set-exec-path-from-shell-PATH () - "Load the login shell's PATH variable manually because macOS doesn't behave well." - (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)))) - (jj/set-exec-path-from-shell-PATH) + (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. @@ -326,16 +322,6 @@ Configure and install =elfeed= to serve as an =rss= feed reader. It stores the f (setq rmh-elfeed-org-files (list "~/.config/emacs/feed.org"))) #+end_src -Set up =deft= for quick notes. -#+begin_src emacs-lisp - (use-package deft - :bind - ("C-c d" . deft) - :config - (setq deft-directory "~/notes/" - deft-default-extension "org")) -#+end_src - * Languages Configure =org-mode=. I use =~/org= as my =org= directory and hide emphasis markers because it's much easier to read that way. I enable =org-crypt= to allow reading and writing encrypted =org= files. I also replace bullets in bulleted lists with nicer looking icons. I configure faces to default to variable-width font, but switching to monospace where it is necessary. Finally, I use =visual-fill-column= to make =org= files display with a relatively narrow window centred in the frame. |