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