On macos, the libexec directory for languagetool, as installed by brew, lives in a version directory. To find the jar, we need to increase the search depth, since the version directory will change with every version. Example of brew-installed languagetool: -------- $ tree -L 2 /usr/local/Cellar/languagetool => /usr/local/Cellar/languagetool └── 4.6 ├── CHANGES.md ├── CHANGES.txt ├── COPYING.txt ├── INSTALL_RECEIPT.json ├── README.md ├── bin └── libexec
56 lines
1.8 KiB
EmacsLisp
56 lines
1.8 KiB
EmacsLisp
;;; app/write/config.el -*- lexical-binding: t; -*-
|
|
|
|
(defvar +write-text-scale nil
|
|
"What to scale the text up to in `+write-mode'. Uses `text-scale-set'.")
|
|
|
|
(defvar +write-line-spacing nil
|
|
"What to set `line-spacing' in `+write-mode'.")
|
|
|
|
;;
|
|
;; Packages
|
|
|
|
(def-package! langtool
|
|
:when (featurep! +langtool)
|
|
:commands (langtool-check
|
|
langtool-check-done
|
|
langtool-show-message-at-point
|
|
langtool-correct-buffer)
|
|
:init (setq langtool-default-language "en-US")
|
|
:config
|
|
(unless langtool-language-tool-jar
|
|
(setq langtool-language-tool-jar
|
|
(cond (IS-MAC
|
|
(locate-file "libexec/languagetool-commandline.jar"
|
|
(doom-files-in "/usr/local/Cellar/languagetool"
|
|
:type 'dirs
|
|
:depth 2)))
|
|
(IS-LINUX
|
|
"/usr/share/java/languagetool/languagetool-commandline.jar")))))
|
|
|
|
|
|
;; `synosaurus'
|
|
(setq synosaurus-choose-method 'default)
|
|
|
|
|
|
;; `mixed-pitch'
|
|
(after! mixed-pitch
|
|
(setq mixed-pitch-fixed-pitch-faces
|
|
(append mixed-pitch-fixed-pitch-faces
|
|
'(org-todo-keyword-todo
|
|
org-todo-keyword-habt
|
|
org-todo-keyword-done
|
|
org-todo-keyword-wait
|
|
org-todo-keyword-kill
|
|
org-todo-keyword-outd
|
|
org-todo
|
|
org-indent
|
|
line-number
|
|
line-number-current-line
|
|
org-special-keyword
|
|
org-date
|
|
org-property-value
|
|
org-special-keyword
|
|
org-property-value
|
|
org-ref-cite-face
|
|
org-tag
|
|
font-lock-comment-face))))
|