Skip to content

Commit

Permalink
Fix :name in prefix keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kungsgeten committed Aug 19, 2024
1 parent fc9e227 commit 77ba11e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ryo-modal.el
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ make sure the name of the created command is unique."
ryo-modal-mode-map)
(add-to-list 'ryo-modal-mode-keymaps mode))
(define-key (eval (intern map-name)) (kbd key) `(,(plist-get args :name))))
(define-key ryo-modal-mode-map (kbd key) `(,(plist-get args :name))))))
(define-key ryo-modal-mode-map (kbd key) `(,(plist-get args :name) . (keymap))))))
(mapc (lambda (x)
;; Merge :then lists
(when (and (plist-get (cddr x) :then)
Expand All @@ -164,8 +164,8 @@ make sure the name of the created command is unique."
(setf (cddr x) (plist-put (cddr x) :first (append (plist-get (cddr x) :first)
(plist-get args :first)))))
(apply #'ryo-modal-key `(,(concat key " " (car x))
,@(cdr x)
,@(org-plist-delete args :name))))
,@(cdr x)
,@(org-plist-delete args :name))))
target))
((and (require 'hydra nil t)
(equal target :hydra))
Expand Down Expand Up @@ -207,8 +207,8 @@ make sure the name of the created command is unique."
(func
(cond
((thread-first (org-plist-delete args :mode)
(org-plist-delete :norepeat)
(org-plist-delete :mc-all))
(org-plist-delete :norepeat)
(org-plist-delete :mc-all))
(eval
`(defun ,(intern (concat "ryo:" hash ":" name)) ()
,docs
Expand Down

1 comment on commit 77ba11e

@Kungsgeten
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should hopefully fix #61

Please sign in to comment.