Skip to content

Commit

Permalink
MOD: Adjust flycheck setup due to Andersbakken#928
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Apr 3, 2017
1 parent ba4303c commit 62abe12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -959,8 +959,9 @@ To turn off the automatic Flycheck syntax checking, set the variable
(flycheck-select-checker 'rtags)
(setq-local flycheck-highlighting-mode nil) ;; RTags creates more accurate overlays.
(setq-local flycheck-check-syntax-automatically nil))
;; c-mode-common-hook is also called by c++-mode
(add-hook 'c-mode-common-hook #'my-flycheck-rtags-setup)
(add-hook 'c-mode-hook #'my-flycheck-rtags-setup)
(add-hook 'c++-mode-hook #'my-flycheck-rtags-setup)
(add-hook 'objc-mode-hook #'my-flycheck-rtags-setup)
#+END_SRC

* Helm support
Expand Down
5 changes: 3 additions & 2 deletions src/flycheck-rtags.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
;; (flycheck-select-checker 'rtags)
;; (setq-local flycheck-check-syntax-automatically nil)
;; (setq-local flycheck-highlighting-mode nil))
;; ;; c-mode-common-hook is also called by c++-mode
;; (add-hook 'c-mode-common-hook #'my-flycheck-rtags-setup)
;; (add-hook 'c-mode-hook #'my-flycheck-rtags-setup)
;; (add-hook 'c++-mode-hook #'my-flycheck-rtags-setup)
;; (add-hook 'objc-mode-hook #'my-flycheck-rtags-setup)
;;

;;; Code:
Expand Down

0 comments on commit 62abe12

Please sign in to comment.