2015-06-15 09:05:52 +02:00
|
|
|
;;; defuns-flycheck.el
|
|
|
|
;; for ../core-flycheck.el
|
|
|
|
|
2015-11-21 16:22:40 -05: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 09:05:52 +02:00
|
|
|
;;;###autoload
|
|
|
|
(defun narf*flycheck-buffer ()
|
2015-11-21 16:22:40 -05:00
|
|
|
(when (bound-and-true-p flycheck-mode)
|
2015-11-20 03:59:09 -05:00
|
|
|
(flycheck-buffer)))
|
2015-06-15 09:05:52 +02: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)))
|
|
|
|
|
2015-11-30 16:49:18 -05:00
|
|
|
;;;###autoload
|
|
|
|
(defun narf/flycheck-errors ()
|
|
|
|
(interactive)
|
|
|
|
(when (bound-and-true-p flycheck-mode)
|
|
|
|
(flycheck-buffer)
|
|
|
|
(flycheck-list-errors)))
|
|
|
|
|
2015-06-15 09:05:52 +02:00
|
|
|
(provide 'defuns-flycheck)
|
|
|
|
;;; defuns-flycheck.el ends here
|