Last active
August 29, 2015 14:15
-
-
Save pwm1234/6746fb64424b2a3ee23e to your computer and use it in GitHub Desktop.
emacs spellcheck (especially on windows) #emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; configure the f8 function key for spell checking | |
(global-set-key [f8] 'ispell-word) | |
(global-set-key [(shift f8)] 'ispell-buffer) | |
; enable flyspell mode for text-mode | |
(add-hook 'text-mode-hook | |
(lambda () | |
(flyspell-mode t) | |
(auto-fill-mode) | |
)) | |
(if (eq system-type 'windows-nt) | |
(progn ; This is the "then" | |
(message "you are on windows ...") | |
;; spellcheck | |
(setq-default ispell-program-name "c:/Program Files (x86)/Aspell/bin/aspell.exe") | |
(setq ispell-personal-dictionary (concat (getenv "HOME") "/.ispell_dictionary")) | |
) | |
;; the rest is the "else" | |
(message "you are NOT on windows!") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My starting point for setting up emacs aspell/ispell spellchecking was
http://www.johndcook.com/blog/emacs_windows/#aspell. My summary is:
Install the aspell for windows (Yes, this release of aspell is from 2002, but it works and there is not a newer release that I could find anywhere!) and your dictionary of choice. If the installer for the dictionary warns you about Aspell already installed, ignore the warning and proceed.