Fix exec-path to work for any Linux home directory

This commit is contained in:
Wojciech Kozlowski 2019-07-24 10:11:40 +02:00
parent 7f9a84cffd
commit 70f359f59f

View File

@ -134,8 +134,10 @@
(setq-default max-lisp-eval-depth 24000) ;; 30x orignal value
;; Add directories to exec-path.
(setq exec-path (append exec-path '("/home/wojtek/.local/bin"
"/home/wojtek/.cask/bin")))
(let ((home-dir (getenv "HOME")))
(setq exec-path
(append exec-path `(,(concat home-dir "/.local/bin")
,(concat home-dir "/.cask/bin")))))
;; --------------------------------------------------------------------------
;; Configure garbage collection.