Skip to content

Latest commit

 

History

History
executable file
·
41 lines (33 loc) · 1.28 KB

starter-kit-aspell.org

File metadata and controls

executable file
·
41 lines (33 loc) · 1.28 KB

Starter Kit aspell

This is part of the Emacs Starter Kit.

Starter Kit aspell

Hackish file to accommodate having aspell installed on your Mac. Otherwise flyspell doesn’t start properly. Putting this customization in <username>.org initiates it too late.

Specify aspell

  (require 'flyspell)
  (setq ispell-program-name "aspell"
        ispell-dictionary "english"
        ispell-dictionary-alist
        (let ((default '("[A-Za-z]" "[^A-Za-z]" "[']" nil
                         ("-B" "-d" "english")
                         nil iso-8859-1)))
          `((nil ,@default)
            ("english" ,@default))))
  (setq ispell-extra-args '("--sug-mode=ultra"))
  (setq ispell-personal-dictionary "~/.aspell.en.pws")
  (setq flyspell-issue-message-flag nil)
  
 
;; More efforts to speed up flyspell
;; See http://www.brool.com/index.php/speeding-up-flyspell-region 
  (defadvice flyspell-region (around fast-flyspell-region)
    (cl-flet ( (sit-for (x) t) ) 
      ad-do-it))
  (ad-activate 'flyspell-region)
  
(message "Starter Kit Aspell loaded.")