config/doom: conditionally load rdictcc

This commit is contained in:
xeruf 2022-09-08 13:29:21 +02:00
parent 87e0feeab0
commit a564bc2336
2 changed files with 13 additions and 6 deletions

View File

@ -877,6 +877,19 @@ Version 2019-11-04 2021-02-16"
)
(setq ispell-personal-dictionary (expand-file-name "personal-dictionary" custom-emacs-data-dir))
(use-package! rdictcc
:if (locate-library "rdictcc")
:bind (("C-c t". 'rdictcc-translate-word-at-point)
("C-c T". 'rdictcc-translate-word))
:config
(map! :leader "T" 'rdictcc-translate-word
:map rdictcc-buffer-mode-map
"q" 'kill-this-buffer
:n "q" 'kill-this-buffer)
(setq rdictcc-program-args "--directory $XDG_DATA_HOME/dictcc")
)
(after! tramp
(setq tramp-default-method "scpx")
(add-to-list 'tramp-methods

View File

@ -29,9 +29,3 @@
(add-to-list 'recentf-list (expand-file-name "5-incubator/downloads/" user-data-dir))
(setq recentf-keep '(recentf-keep-default-predicate file-remote-p "/ssh:.*"))
)
(use-package! rdictcc
:bind (("C-c t". 'rdictcc-translate-word-at-point)
("C-c T". 'rdictcc-translate-word))
:config (setq rdictcc-program-args "--directory $XDG_DATA_HOME/dictcc")
)