Better path fix on macos

This commit is contained in:
John Doty 2016-05-24 13:49:25 -07:00
parent 6c0d10afa4
commit 2670bbb857

View file

@ -87,6 +87,8 @@
'flymake ; Compiling
'flycheck ; Checking
'exec-path-from-shell ; Fix path on MacOS
'go-autocomplete ; Autocomplete for golang
'popup ; Pretty completions?
@ -244,10 +246,9 @@
;; Cleanup all the whitespaces.
(add-hook 'before-save-hook 'whitespace-cleanup)
;; On MacOS we need to specify the path to aspell explicitly because PATH is
;; a broken pile of garbage.
(if (file-executable-p "/usr/local/bin/aspell")
(setq ispell-program-name "/usr/local/bin/aspell"))
;; Fix path loading on MacOS X
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
;; =================================================================
;; Text mode configuration.