Better path fix on macos
This commit is contained in:
parent
6c0d10afa4
commit
2670bbb857
1 changed files with 5 additions and 4 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue