[Hydra] Remove hydra for changing ispell dictionaries
Use standard ‘ispell-change-dictionary’ instead (it’s more generic and should also work on Windows)
This commit is contained in:
parent
e67acca3a9
commit
20e14a345b
5
init.el
5
init.el
|
@ -188,7 +188,7 @@
|
||||||
(bind-key "C-c c" #'org-capture)
|
(bind-key "C-c c" #'org-capture)
|
||||||
(bind-key "C-c d" #'define-word-at-point)
|
(bind-key "C-c d" #'define-word-at-point)
|
||||||
(bind-key "C-c e" #'crux-eval-and-replace)
|
(bind-key "C-c e" #'crux-eval-and-replace)
|
||||||
(bind-key "C-c i" #'hydra-ispell/body)
|
(bind-key "C-c i" #'ispell-change-dictionary)
|
||||||
(bind-key "C-c j" #'avy-goto-char-timer)
|
(bind-key "C-c j" #'avy-goto-char-timer)
|
||||||
(bind-key "C-c l" #'org-store-link)
|
(bind-key "C-c l" #'org-store-link)
|
||||||
(bind-key "C-c m" #'emms-control/body)
|
(bind-key "C-c m" #'emms-control/body)
|
||||||
|
@ -560,8 +560,7 @@ search commands like `db/helm-shortcuts’."
|
||||||
:commands (defhydra))
|
:commands (defhydra))
|
||||||
|
|
||||||
(use-package db-hydras
|
(use-package db-hydras
|
||||||
:commands (hydra-ispell/body
|
:commands (hydra-toggle/body
|
||||||
hydra-toggle/body
|
|
||||||
hydra-zoom/body
|
hydra-zoom/body
|
||||||
hydra-rectangle/body))
|
hydra-rectangle/body))
|
||||||
|
|
||||||
|
|
|
@ -9,19 +9,6 @@
|
||||||
|
|
||||||
;;; Hydras
|
;;; Hydras
|
||||||
|
|
||||||
(defhydra hydra-ispell (:color blue)
|
|
||||||
"ispell"
|
|
||||||
("g" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(setq ispell-dictionary "de_DE")
|
|
||||||
(ispell-change-dictionary "de_DE"))
|
|
||||||
"german")
|
|
||||||
("e" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(setq ispell-dictionary "en_US")
|
|
||||||
(ispell-change-dictionary "en_US"))
|
|
||||||
"english"))
|
|
||||||
|
|
||||||
(defhydra hydra-toggle (:color blue)
|
(defhydra hydra-toggle (:color blue)
|
||||||
"toggle"
|
"toggle"
|
||||||
("c" column-number-mode "column")
|
("c" column-number-mode "column")
|
||||||
|
|
Loading…
Reference in New Issue