aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2022-07-29 07:54:42 -0700
committerRaul Benencia <id@rbenencia.name>2022-07-29 07:54:42 -0700
commit2637baf09fce7c598496528da24f6c1b724efa97 (patch)
tree5a57f99a7185d082eddcca8f11de0c490edaef84 /.emacs.local.d
parent2914f09e3c661ecbef3a1514de9062dc1a3245b2 (diff)
emacs: enable flycheck and languagetool
Diffstat (limited to '.emacs.local.d')
-rw-r--r--.emacs.local.d/general.el4
-rw-r--r--.emacs.local.d/modes/flycheck.el8
2 files changed, 10 insertions, 2 deletions
diff --git a/.emacs.local.d/general.el b/.emacs.local.d/general.el
index dc4ca17..76efd12 100644
--- a/.emacs.local.d/general.el
+++ b/.emacs.local.d/general.el
@@ -164,8 +164,8 @@
;;(setq browse-url-browser-function 'browse-url-generic browse-url-generic-program "chromium")
;; Mutt support.
-(setq auto-mode-alist (append '((".*tmp/mutt.*" . mail-mode)) auto-mode-alist))
-(setq auto-mode-alist (append '((".*tmp/neomutt.*" . mail-mode)) auto-mode-alist))
+(setq auto-mode-alist (append '((".*tmp/mutt.*" . message-mode)) auto-mode-alist))
+(setq auto-mode-alist (append '((".*tmp/neomutt.*" . message-mode)) auto-mode-alist))
;; Save what you enter into minibuffer prompts
(setq history-length 25)
diff --git a/.emacs.local.d/modes/flycheck.el b/.emacs.local.d/modes/flycheck.el
index 45571e2..6662c06 100644
--- a/.emacs.local.d/modes/flycheck.el
+++ b/.emacs.local.d/modes/flycheck.el
@@ -10,3 +10,11 @@
:modes (text-mode markdown-mode gfm-mode org-mode))
(add-to-list 'flycheck-checkers 'proselint)
+
+;; TODO: docker run --rm -p 8010:8010 erikvl87/languagetool
+(use-package flycheck-languagetool
+ :ensure t
+ :hook (message-mode . flycheck-languagetool-setup)
+ :init
+ (setq flycheck-languagetool-url "http://localhost:8010")
+)
nihil fit ex nihilo