fixed a bug with the prelude-flyspell check
This commit is contained in:
parent
e5ecc1de53
commit
f931272111
1 changed files with 10 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue