Add languagetool to Emacs
This commit is contained in:
parent
a131cb9b89
commit
315517268a
|
@ -7,9 +7,15 @@
|
||||||
|
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
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;[
|
extraPackages = epkgs: with pkgs;[
|
||||||
mu
|
mu
|
||||||
rufo # formatter for Ruby
|
rufo # formatter for Ruby
|
||||||
|
languagetool
|
||||||
python39Packages.autopep8
|
python39Packages.autopep8
|
||||||
python39Packages.black
|
python39Packages.black
|
||||||
python39Packages.flake8
|
python39Packages.flake8
|
||||||
|
@ -53,6 +59,7 @@
|
||||||
epkgs.htmlize
|
epkgs.htmlize
|
||||||
epkgs.hydra
|
epkgs.hydra
|
||||||
epkgs.know-your-http-well
|
epkgs.know-your-http-well
|
||||||
|
epkgs.languagetool
|
||||||
epkgs.lv
|
epkgs.lv
|
||||||
epkgs.magit
|
epkgs.magit
|
||||||
epkgs.makey
|
epkgs.makey
|
||||||
|
|
|
@ -509,10 +509,7 @@ with the ~C-h m~ keybindings it's a bit easier to view in this mode.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(when (boundp 'enable-langtool)
|
(when (boundp 'enable-langtool)
|
||||||
(use-package langtool
|
(use-package langtool
|
||||||
:ensure t
|
:ensure t))
|
||||||
:defer t
|
|
||||||
:config
|
|
||||||
(setq langtool-language-tool-jar "~/.emacs.d/languagetool/languagetool-commandline.jar")))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** hydra
|
*** hydra
|
||||||
|
|
Loading…
Reference in New Issue
Block a user