diff --git a/dot_doom.d/config.el.tmpl b/dot_doom.d/config.el similarity index 94% rename from dot_doom.d/config.el.tmpl rename to dot_doom.d/config.el index 2eed1991799fe8c64cf215698c4f0da5035314dc..318b5cb23769d4bbdca473b7f21a4dd7f971e0ff 100644 --- a/dot_doom.d/config.el.tmpl +++ b/dot_doom.d/config.el @@ -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")