Skip to content

Commit

Permalink
Don't change the dictionary on find-file, just set the damn variable …
Browse files Browse the repository at this point in the history
…and be done with it

I wasn't sure if this was causing my new-frame slow down. It turned out not but it's
cleaner this way I think
  • Loading branch information
stsquad authored and Alex Bennee committed Aug 22, 2009
1 parent 844d6bb commit 0ce1e49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dotemacs
Expand Up @@ -863,10 +863,8 @@ on the command line"
; select aspell out of preference
(if (eval aspell-path)
(setq ispell-program-name aspell-path))
; reset British dict on loading file
(add-hook 'find-file-hooks
'(lambda ()
(ispell-change-dictionary "british")))

(setq ispell-dictionary "british")

;; flyspell mode
; I think this has been in emacs a while, but best practice to check
Expand Down

0 comments on commit 0ce1e49

Please sign in to comment.