2014-07-17 02:59:23 -04:00
|
|
|
(require-packages
|
|
|
|
'(flycheck ; syntax checker
|
|
|
|
flyspell ; spell checker
|
|
|
|
))
|
|
|
|
|
2014-07-21 03:52:01 -04:00
|
|
|
;;;#flyspell
|
2014-07-20 09:17:43 -04:00
|
|
|
(diminish 'flyspell-mode " ?")
|
2014-07-17 02:59:23 -04:00
|
|
|
(setq ispell-program-name "aspell")
|
|
|
|
(setq ispell-list-command "--list")
|
2014-07-20 09:17:43 -04:00
|
|
|
(dolist (hook '(markdown-mode-hook git-commit-mode-hook org-mode-hook))
|
|
|
|
(add-hook hook (lambda() (flyspell-mode 1))))
|
|
|
|
|
2014-07-21 03:52:01 -04:00
|
|
|
;;;#flycheck
|
|
|
|
;; Removed checks on idle/change for snappiness
|
|
|
|
(setq flycheck-check-syntax-automatically '(save new-line mode-enabled))
|
|
|
|
(setq flycheck-indication-mode 'right-fringe)
|
|
|
|
(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
|
|
|
|
|
|
|
|
(global-flycheck-mode 1)
|
2014-07-17 02:59:23 -04:00
|
|
|
|
|
|
|
;;
|
|
|
|
(provide 'mod-fly)
|