config/doom: conditionally load rdictcc
This commit is contained in:
parent
87e0feeab0
commit
a564bc2336
|
@ -877,6 +877,19 @@ Version 2019-11-04 2021-02-16"
|
||||||
)
|
)
|
||||||
(setq ispell-personal-dictionary (expand-file-name "personal-dictionary" custom-emacs-data-dir))
|
(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
|
(after! tramp
|
||||||
(setq tramp-default-method "scpx")
|
(setq tramp-default-method "scpx")
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
|
|
|
@ -29,9 +29,3 @@
|
||||||
(add-to-list 'recentf-list (expand-file-name "5-incubator/downloads/" user-data-dir))
|
(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:.*"))
|
(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")
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue