summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-07-10 23:13:53 +0100
committerBlake Romero <blake@blkrom.com>2025-07-10 23:13:53 +0100
commitf5e7f550c143a64b4324bf4d69c31129612a1b3c (patch)
tree6d68920e94c9ea27f179b7cf4d5223c6ddb60fc1
parentc5ef9259b943f595034264a85d6128e7df190957 (diff)
Add flymake 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