From a230cc6e48db8affaa0c463021e625b5e7edeae4 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 24 May 2016 10:44:41 -0700 Subject: [PATCH] Fix aspell on mac --- .emacs.d/core.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index ff56bda..26cbf48 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -243,6 +243,11 @@ ;; 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")) + ;; ================================================================= ;; Text mode configuration. ;; =================================================================