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