aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAlex <alex.corcoles@veecle.io>2025-02-28 19:45:19 +0100
committeralexpdp7 <alex@corcoles.net>2025-02-28 19:49:29 +0100
commitf7d9dffd78adeb57909f10204d9e30067acbe59a (patch)
tree2a7eab143883e33da49d227c03dbe95221470dbc /emacs
parentabf452d3884de3a9ada37c508c48669a77fc730f (diff)
Enable flymake automatically for Rust and Markdown
Diffstat (limited to 'emacs')
-rw-r--r--emacs/emacs.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index 860e7b77..f365704f 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -156,10 +156,13 @@
(setq auto-mode-alist (append '(("\\.pl\\'" . prolog-mode))
auto-mode-alist))
+(add-hook 'markdown-mode-hook 'flymake-mode)
+(add-hook 'rust-mode-hook 'flymake-mode)
+
(use-package flymake-vale
:vc (:url "https://github.com/tpeacock19/flymake-vale.git"
:rev :newest)
:config
- (add-to-list 'flymake-vale-modes 'rust-mode)
- (add-hook 'find-file-hook 'flymake-vale-maybe-load)
+ (add-hook 'markdown-mode-hook #'flymake-vale-load)
+ (add-hook 'rust-mode-hook #'flymake-vale-load)
)