Change summary
dot_doom.d/config.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Detailed changes
@@ -78,7 +78,7 @@
(add-to-list 'auto-mode-alist '("/tmp/neomutt-*" . mail-mode))
;; Prevent Emacs from indenting Org headers
-;(setq org-adapt-indentation nil)
+ ;(setq org-adapt-indentation nil)
;; Allow export to markdown and beamer (for presentations).
(require 'ox-md)
@@ -119,9 +119,7 @@
;; [LilyPond]: https://lilypond.org/
(require 'lilypond-mode)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
-{{- if eq .chezmoi.os "linux" }}
(setq LilyPond-pdf-command "zathura")
-{{- end }}
;; Define prose modes for enabling prose-related niceties
(defvar prose-modes
@@ -174,3 +172,12 @@
(other-window 1))
(global-set-key (kbd "C-x 2") 'amo/split-window-below-and-switch)
(global-set-key (kbd "C-x 3") 'amo/split-window-right-and-switch)
+
+;; Add a path both to the $PATH variable and to Emacs' exec-path
+(defun amo/append-to-path (path)
+ (setenv "PATH" (concat (getenv "PATH") ":" path))
+ (add-to-list 'exec-path path))
+
+;; Look for various executables
+(amo/append-to-path "/usr/local/bin")
+(amo/append-to-path "~/.local/bin")