summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs-config.org15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs-config.org b/emacs-config.org
index 11fb76c..2fe2f99 100644
--- a/emacs-config.org
+++ b/emacs-config.org
@@ -459,6 +459,21 @@ Enable supported org babel languages.
(cl-pushnew `(,lang . t) org-babel-load-languages))
#+end_src
+** Error Checking
+Enable flymake for programming modes.
+#+begin_src elisp
+ (add-hook 'prog-mode-hook #'flymake-mode)
+#+end_src
+
+Set flymake keybindings.
+#+begin_src elisp
+ (with-eval-after-load 'flymake
+ (keymap-set flymake-mode-map "M-# #" #'flymake-show-buffer-diagnostics)
+ (keymap-set flymake-mode-map "M-# M-#" #'flymake-show-project-diagnostics)
+ (keymap-set flymake-mode-map "M-# M-]" #'flymake-goto-next-error)
+ (keymap-set flymake-mode-map "M-# M-[" #'flymake-goto-prev-error))
+#+end_src
+
* Keybindings
Unlock previously unusable keybinding.
#+begin_src elisp