Эх сурвалжийг харах

Add flycheck and flycheck tooltip

Josh Bicking 8 жил өмнө
parent
commit
69214dfb52
1 өөрчлөгдсөн 19 нэмэгдсэн , 0 устгасан
  1. 19 0
      emacs

+ 19 - 0
emacs

@@ -143,6 +143,8 @@
 	;helm
 	ivy
 	smooth-scrolling
+	flycheck
+	flycheck-pos-tip
 	))
 
 ;; List of optional packages
@@ -346,6 +348,7 @@
  "a" 'company-mode
  "g" 'magit-status
  "M-g" 'magit-dispatch-popup
+ "c" 'flycheck-mode
  )
 
 
@@ -413,6 +416,22 @@
 scroll-conservatively 9999
 scroll-step 1)
 
+;; flycheck
+(require 'flycheck)
+(add-hook 'after-init-hook #'global-flycheck-mode)
+
+(setq flycheck-check-syntax-automatically '(save mode-enabled))
+(setq flycheck-checkers (delq 'emacs-lisp-checkdoc flycheck-checkers))
+(setq flycheck-checkers (delq 'html-tidy flycheck-checkers))
+(setq flycheck-standard-error-navigation nil)
+
+(global-flycheck-mode t)
+
+;; flycheck-pos-tip: flycheck errors on a tooltip 
+(require 'flycheck-pos-tip)
+(with-eval-after-load 'flycheck
+  (flycheck-pos-tip-mode))
+
 
 ;;;; System-specific configs