doomemacs/core/lib/defuns-flycheck.el

33 lines
754 B
EmacsLisp
Raw Normal View History

2015-06-15 15:05:52 +08:00
;;; defuns-flycheck.el
;; for ../core-flycheck.el
2015-11-22 05:22:40 +08:00
;;;###autoload
(defun narf|flycheck-enable-maybe ()
(unless (or (bound-and-true-p org-src-mode)
(eq major-mode 'org-mode))
(flycheck-mode +1)))
2015-06-15 15:05:52 +08:00
;;;###autoload
(defun narf*flycheck-buffer ()
2015-11-22 05:22:40 +08:00
(when (bound-and-true-p flycheck-mode)
2015-11-20 16:59:09 +08:00
(flycheck-buffer)))
2015-06-15 15:05:52 +08:00
;;;###autoload
(defun narf/flycheck-next-error ()
(interactive)
(call-interactively
(if (bound-and-true-p flycheck-mode)
'flycheck-next-error
'next-error)))
;;;###autoload
(defun narf/flycheck-previous-error ()
(interactive)
(call-interactively
(if (bound-and-true-p flycheck-mode)
'flycheck-previous-error
'previous-error)))
(provide 'defuns-flycheck)
;;; defuns-flycheck.el ends here