From 533a307043262edc50be723fa293503047a549d7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 12 Nov 2015 02:07:48 -0500 Subject: [PATCH] Flycheck: better evil-mode + fringe integration --- core/core-flycheck.el | 9 ++++++--- core/core-ui.el | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/core-flycheck.el b/core/core-flycheck.el index 3ed8c9dc2..feaebfb99 100644 --- a/core/core-flycheck.el +++ b/core/core-flycheck.el @@ -4,14 +4,17 @@ (use-package flycheck :commands (flycheck-mode flycheck-list-errors flycheck-buffer) :init - (setq flycheck-indication-mode nil + (setq flycheck-indication-mode 'right-fringe ;; Removed checks on idle/change for snappiness - flycheck-check-syntax-automatically '(save mode-enabled idle-change) + flycheck-check-syntax-automatically '(save mode-enabled) flycheck-disabled-checkers '(emacs-lisp-checkdoc make)) :config (bind! :map flycheck-error-list-mode-map :n [escape] 'kill-this-buffer - :n "q" 'kill-this-buffer) + :n "q" 'kill-this-buffer + :n "C-n" 'flycheck-error-list-next-error + :n "C-p" 'flycheck-error-list-previous-error + :n "RET" 'flycheck-error-list-goto-error) (evil-initial-state 'flycheck-error-list-mode 'emacs) diff --git a/core/core-ui.el b/core/core-ui.el index e89947af9..f9624168f 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -142,6 +142,7 @@ ("*helm-ag-edit*" :position bottom :height 20 :stick t) (help-mode :position bottom :height 15 :stick t) ("*Backtrace*" :position bottom :height 15 :stick t) + ("*Flycheck errors*" :position bottom :height 15 :stick t) ("^\\*[Hh]elm.*?\\*\\'" :regexp t :position bottom :height 15) ("^\\*Org-Babel.*\\*$" :regexp t :position bottom :height 15) ("^\\*Org .*\\*$" :regexp t :position bottom :height 15)