about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-17T14·28-0400
committerglittershark <grfn@gws.fyi>2020-07-18T00·21+0000
commitf80eb91c2a49a00893954b84ef70c431133e03da (patch)
treee344a9f702894b753abcc6111cc5d4a6b778fd05
parentbe6fe93dd4cdf4583e615c412100b0ec0fc0b64d (diff)
fix(gs/emacs): Properly disable c++/clang flycheck checker r/1371
This has to be disabled per-buffer

Change-Id: I56bcf25d78c56d531b361f64f26bff9e9a986c39
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1257
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
-rw-r--r--users/glittershark/emacs.d/cpp.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/users/glittershark/emacs.d/cpp.el b/users/glittershark/emacs.d/cpp.el
index 92b868a52f78..c723233415d1 100644
--- a/users/glittershark/emacs.d/cpp.el
+++ b/users/glittershark/emacs.d/cpp.el
@@ -5,7 +5,7 @@
 
 (after! flycheck
   (add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
-  (add-to-list 'flycheck-disabled-checkers 'c/c++-clangd))
+  (add-to-list 'flycheck-disabled-checkers 'c/c++-clang))
 
 (defun +grfn/cpp-setup ()
   (when (s-starts-with?
@@ -14,7 +14,9 @@
     (setq lsp-clients-clangd-executable "/home/grfn/code/depot/users/glittershark/emacs.d/nix-clangd.sh"
           lsp-clients-clangd-args nil)
     (google-set-c-style)
-    (lsp)))
+    (lsp)
+    (add-to-list 'flycheck-disabled-checkers 'c/c++-gcc)
+    (add-to-list 'flycheck-disabled-checkers 'c/c++-clang)))
 
 (add-hook 'c++-mode-hook #'+grfn/cpp-setup)