Skip to content

Commit

Permalink
Change a keybinding to a defcustom. See issue #324
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 2, 2024
1 parent 8f74c62 commit a3919b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scimax-hydra.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@
:type 'string
:group 'scimax-hydra)

(defcustom scimax-hydra-mode-key "<M-f12>"
"Key to bind `scimax-dispatch-mode-hydra/body' to."
:type 'string
:group 'scimax-hydra)

(global-set-key (kbd scimax-hydra-key) 'scimax/body)
(global-set-key (kbd scimax-hydra-mode-key) 'scimax-dispatch-mode-hydra)

;;* scimax-hydra utilities

Expand Down Expand Up @@ -1235,7 +1241,6 @@ doesn't move, it means you were at the beginning of a paragraph."
(scimax-open-hydra scimax-org/body)))))
(_ (message "no hydra found for this context"))))

(global-set-key (kbd "<H-f12>") 'scimax-dispatch-mode-hydra)

;; ** major mode hydras
(defhydra scimax-words (:color blue :hint nil :inherit (scimax-base/heads))
Expand Down

0 comments on commit a3919b5

Please sign in to comment.