summaryrefslogtreecommitdiff
path: root/settings/setup-flycheck.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2023-11-25 10:02:42 -0800
committerbenj <benj@rse8.com>2023-11-25 10:02:42 -0800
commit4cfa8246ea7eec4139ba6c34d3fb3a4545956824 (patch)
tree450ba709847d3740eef79753c428095bdb08fe62 /settings/setup-flycheck.el
parent4f78ee33bfc828707a79cd79d296bf4a9c25b5b9 (diff)
downloademacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.gz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.bz2
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.lz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.xz
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.tar.zst
emacs-4cfa8246ea7eec4139ba6c34d3fb3a4545956824.zip
rewrite emacs init.el and go back to basics
This is a complete rewrite leveraging the very popular use-package to see how I like it. We reduce init.el to a bare minimum configuration and remove the previous homebrew organizational scheme. A number of packages have yet to be setup, but we'll wait and do in JIT.
Diffstat (limited to '')
-rw-r--r--settings/setup-flycheck.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/settings/setup-flycheck.el b/settings/setup-flycheck.el
deleted file mode 100644
index a050c3c..0000000
--- a/settings/setup-flycheck.el
+++ /dev/null
@@ -1,32 +0,0 @@
-(require 'flycheck)
-(require 'flycheck-pos-tip)
-(require 'flycheck-clangcheck)
-
-;; When using flycheck in a larger c++ project with a variety of headers
-;; across a variety of dirs, add the following to your .dir-locals.el
-;; (flycheck-clang-dbname . "/abs/path/to/build/compile_commands.json")
-
-(defun setup-custom-clang-checker ()
- (flycheck-set-checker-executable 'c/c++-clangcheck "/usr/bin/clang-check")
- (flycheck-select-checker 'c/c++-clangcheck))
-
-(add-hook 'c-mode-hook #'setup-custom-clang-checker)
-(add-hook 'c++-mode-hook #'setup-custom-clang-checker)
-
-(global-flycheck-mode 1)
-
-(eval-after-load 'flycheck
- '(custom-set-variables
- '(flycheck-display-errors-function #'flycheck-pos-tip-error-messages)))
-
-;; hack to get around go tool vet issue
-(let ((govet (flycheck-checker-get 'go-vet 'command)))
- (when (equal (cadr govet) "tool")
- (setf (cdr govet) (cddr govet))))
-
-(global-set-key (kbd "<f2>") 'flyspell-auto-correct-previous-word)
-(setq flycheck-clangcheck-analyze t)
-
-(add-hook 'sh-mode-hook 'flycheck-mode)
-
-(provide 'setup-flycheck)