doomemacs/init/init-fly.el

42 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2014-08-29 22:37:25 -04:00
(use-package flycheck
:init
2015-05-07 03:19:24 -04:00
(setq-default flycheck-indication-mode 'right-fringe
;; Removed checks on idle/change for snappiness
flycheck-check-syntax-automatically '(save mode-enabled idle-change)
flycheck-disabled-checkers '(emacs-lisp-checkdoc make))
:config
(progn ; flycheck settings
2015-05-08 03:03:38 -04:00
(add-hooks '(ruby-mode-hook
python-mode-hook
php-mode-hook
lua-mode-hook
shell-mode-hook
scss-mode-hook
c++-mode-hook
c-mode-hook)
'flycheck-mode)
2015-05-07 03:19:24 -04:00
2014-12-05 17:28:03 -05:00
(my--cleanup-buffers-add "^\\*Flycheck.*\\*$")
(bind 'normal flycheck-error-list-mode-map
[escape] 'kill-this-buffer
"q" 'kill-this-buffer)
(evil-initial-state 'flycheck-error-list-mode 'emacs)
(defun my--evil-flycheck-buffer ()
2014-12-05 17:28:03 -05:00
(if (and (featurep 'flycheck) flycheck-mode)
(flycheck-buffer)))
;; Check buffer when normal mode is entered
(add-hook 'evil-normal-state-entry-hook 'my--evil-flycheck-buffer)
2014-12-05 17:28:03 -05:00
;; And on ESC in normal mode.
(defadvice evil-force-normal-state (after evil-esc-flycheck-buffer activate)
2015-05-09 18:08:12 -04:00
(my--evil-flycheck-buffer))))
2014-08-07 18:35:22 -04:00
(use-package flyspell :commands flyspell-mode)
2014-12-12 15:35:58 -05:00
(provide 'init-fly)
;;; init-fly.el ends here