From: Alex Date: Fri, 28 Feb 2025 18:45:19 +0000 (+0100) Subject: Enable flymake automatically for Rust and Markdown X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=f7d9dffd78adeb57909f10204d9e30067acbe59a;p=alex.git Enable flymake automatically for Rust and Markdown --- diff --git a/emacs/emacs.el b/emacs/emacs.el index 860e7b7..f365704 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) )