diff options
| author | Alex <alex.corcoles@veecle.io> | 2025-02-28 19:45:19 +0100 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-02-28 19:49:29 +0100 |
| commit | f7d9dffd78adeb57909f10204d9e30067acbe59a (patch) | |
| tree | 2a7eab143883e33da49d227c03dbe95221470dbc /emacs/emacs.el | |
| parent | abf452d3884de3a9ada37c508c48669a77fc730f (diff) | |
Enable flymake automatically for Rust and Markdown
Diffstat (limited to 'emacs/emacs.el')
| -rw-r--r-- | emacs/emacs.el | 7 |
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) ) |
