Created
May 8, 2015 09:08
-
-
Save metamorph/69f37f7686164e7c4d94 to your computer and use it in GitHub Desktop.
Revisions
-
metamorph created this gist
May 8, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ ;; Remove fly-spell for markdown and text-files. (remove-hook 'text-mode-hook 'enable-flyspell-mode) (remove-hook 'markdown-mode-hook 'enable-flyspell-mode) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ (defun spacemacs/init-flyspell () (defun enable-flyspell-mode () (flyspell-mode 1)) (use-package flyspell :defer t :init (progn (setq-default ispell-program-name "aspell") (setq-default ispell-dictionary "english") (add-hook 'markdown-mode-hook 'enable-flyspell-mode) (add-hook 'text-mode-hook 'enable-flyspell-mode) (spacemacs|add-toggle spelling-checking :status flyspell-mode :on (flyspell-mode) :off (flyspell-mode -1) :documentation "Enable flyspell for automatic spelling checking." :evil-leader "ts")) :config (progn (flyspell-prog-mode) (spacemacs|diminish flyspell-mode " ⓢ" " s"))))