From 0ce1e494802eb7696bc218e65d0fafbdb13bec43 Mon Sep 17 00:00:00 2001 From: Alex Bennee Date: Sat, 22 Aug 2009 10:17:05 +0100 Subject: [PATCH] Don't change the dictionary on find-file, just set the damn variable 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 --- dotemacs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotemacs b/dotemacs index 40ec20f..55609aa 100644 --- a/dotemacs +++ b/dotemacs @@ -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