浏览代码

Add flycheck and flycheck tooltip

Josh Bicking 8 年之前
父节点
当前提交
69214dfb52
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      emacs

+ 19 - 0
emacs

@@ -143,6 +143,8 @@
 	;helm
 	;helm
 	ivy
 	ivy
 	smooth-scrolling
 	smooth-scrolling
+	flycheck
+	flycheck-pos-tip
 	))
 	))
 
 
 ;; List of optional packages
 ;; List of optional packages
@@ -346,6 +348,7 @@
  "a" 'company-mode
  "a" 'company-mode
  "g" 'magit-status
  "g" 'magit-status
  "M-g" 'magit-dispatch-popup
  "M-g" 'magit-dispatch-popup
+ "c" 'flycheck-mode
  )
  )
 
 
 
 
@@ -413,6 +416,22 @@
 scroll-conservatively 9999
 scroll-conservatively 9999
 scroll-step 1)
 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
 ;;;; System-specific configs