summaryrefslogtreecommitdiff
path: root/init/flycheck/init-flycheck.el
diff options
context:
space:
mode:
Diffstat (limited to 'init/flycheck/init-flycheck.el')
-rw-r--r--init/flycheck/init-flycheck.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/init/flycheck/init-flycheck.el b/init/flycheck/init-flycheck.el
new file mode 100644
index 0000000..ee59ef8
--- /dev/null
+++ b/init/flycheck/init-flycheck.el
@@ -0,0 +1,15 @@
+(require 'flycheck)
+
+(load "init-flycheck-cargo-has-command-p-fix")
+
+(add-hook 'flycheck-error-list-mode-hook (lambda () (visual-line-mode 1)))
+
+(add-to-list 'display-buffer-alist '("\\*Flycheck errors.*"
+ (init-display-buffer-best-side)
+ (which-side . (lambda ()
+ (if (init-display-buffer-frame-wide-p)
+ 'right
+ 'bottom)))))
+
+
+(provide 'init-flycheck)