app/write: refactor
Removed autoloads that are already defined by packages.
This commit is contained in:
parent
fb3d385211
commit
a7bef8ec88
2 changed files with 6 additions and 21 deletions
|
@ -19,6 +19,6 @@
|
||||||
(defun +write|init-org-mode ()
|
(defun +write|init-org-mode ()
|
||||||
"Initializes `org-mode' specific settings for `+write-mode'."
|
"Initializes `org-mode' specific settings for `+write-mode'."
|
||||||
(when (eq major-mode 'org-mode)
|
(when (eq major-mode 'org-mode)
|
||||||
(let ((arg (if +write-mode +1 -1)))
|
(let ((arg (if +write-mode +1 -1)))
|
||||||
(+org-pretty-mode arg)
|
(+org-pretty-mode arg)
|
||||||
(org-indent-mode (if +write-mode -1 +1)))))
|
(org-indent-mode (if +write-mode -1 +1)))))
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
:when (featurep! +langtool)
|
:when (featurep! +langtool)
|
||||||
:commands (langtool-check
|
:commands (langtool-check
|
||||||
langtool-check-done
|
langtool-check-done
|
||||||
langtool-switch-default-language
|
|
||||||
langtool-show-message-at-point
|
langtool-show-message-at-point
|
||||||
langtool-correct-buffer)
|
langtool-correct-buffer)
|
||||||
:init
|
:init (setq langtool-default-language "en-US")
|
||||||
(setq langtool-default-language "en-US")
|
|
||||||
:config
|
:config
|
||||||
(defvar langtool-language-tool-jar
|
(defvar langtool-language-tool-jar
|
||||||
(cond (IS-MAC
|
(cond (IS-MAC
|
||||||
|
@ -39,25 +37,12 @@
|
||||||
"/usr/share/java/languagetool/languagetool-commandline.jar"))))
|
"/usr/share/java/languagetool/languagetool-commandline.jar"))))
|
||||||
|
|
||||||
|
|
||||||
(def-package! wordnut
|
;; `synosaurus'
|
||||||
:when (featurep! +wordnut)
|
(setq synosaurus-choose-method 'default)
|
||||||
:commands (wordnut-search
|
|
||||||
wordnut-lookup-current-word))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! synosaurus
|
;; `mixed-pitch'
|
||||||
:commands (synosaurus-mode
|
(after! mixed-pitch
|
||||||
synosaurus-lookup
|
|
||||||
synosaurus-choose-and-replace)
|
|
||||||
:config
|
|
||||||
(setq synosaurus-choose-method 'default))
|
|
||||||
|
|
||||||
(def-package! synosaurus-wordnet
|
|
||||||
:commands synosaurus-backend-wordnet)
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! mixed-pitch
|
|
||||||
:config
|
|
||||||
(setq mixed-pitch-fixed-pitch-faces
|
(setq mixed-pitch-fixed-pitch-faces
|
||||||
(append mixed-pitch-fixed-pitch-faces
|
(append mixed-pitch-fixed-pitch-faces
|
||||||
'(org-todo-keyword-todo
|
'(org-todo-keyword-todo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue