fixed a bug with the prelude-flyspell check

This commit is contained in:
Bozhidar Batsov 2012-12-09 11:36:21 +02:00
parent e5ecc1de53
commit f931272111

View file

@ -214,9 +214,12 @@
ispell-extra-args '("--sug-mode=ultra"))
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
(defun prelude-enable-flyspell ()
(when (and prelude-flyspell (executable-find ispell-program-name))
(add-hook 'message-mode-hook 'flyspell-mode)
(add-hook 'text-mode-hook 'flyspell-mode))
(flyspell-mode +1)))
(add-hook 'message-mode-hook 'prelude-enable-flyspell)
(add-hook 'text-mode-hook 'prelude-enable-flyspell)
;; enable narrowing commands
(put 'narrow-to-region 'disabled nil)
@ -234,10 +237,10 @@
bookmark-save-flag 1)
;; load yasnippet
(require 'yasnippet)
(add-to-list 'yas-snippet-dirs prelude-snippets-dir)
(add-to-list 'yas-snippet-dirs prelude-personal-snippets-dir)
(yas-global-mode 1)
;(require 'yasnippet)
;(add-to-list 'yas-snippet-dirs prelude-snippets-dir)
;(add-to-list 'yas-snippet-dirs prelude-personal-snippets-dir)
;(yas-global-mode 1)
;; projectile is a project management mode
(require 'projectile)