Add languagetool to Emacs

This commit is contained in:
Andreas Zweili 2022-06-07 19:53:31 +02:00
parent a131cb9b89
commit 315517268a
2 changed files with 8 additions and 4 deletions

View File

@ -7,9 +7,15 @@
programs.emacs = {
enable = true;
extraConfig = ''
(setq languagetool-java-arguments '("-Dfile.encoding=UTF-8")
languagetool-console-command "${pkgs.languagetool}/bin/languagetool-commandline"
languagetool-server-command "${pkgs.languagetool}/bin/languagetool-server")
'';
extraPackages = epkgs: with pkgs;[
mu
rufo # formatter for Ruby
languagetool
python39Packages.autopep8
python39Packages.black
python39Packages.flake8
@ -53,6 +59,7 @@
epkgs.htmlize
epkgs.hydra
epkgs.know-your-http-well
epkgs.languagetool
epkgs.lv
epkgs.magit
epkgs.makey

View File

@ -509,10 +509,7 @@ with the ~C-h m~ keybindings it's a bit easier to view in this mode.
#+BEGIN_SRC emacs-lisp
(when (boundp 'enable-langtool)
(use-package langtool
:ensure t
:defer t
:config
(setq langtool-language-tool-jar "~/.emacs.d/languagetool/languagetool-commandline.jar")))
:ensure t))
#+END_SRC
*** hydra