Merge pull request #149 from clemera/allow-to-bind-regular-emacs-commands

Allow to provide regular emacs commands in app keybinding lists
master
Mingde Zeng 6 years ago committed by GitHub
commit 2815691d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      eaf.el

@ -509,10 +509,12 @@ to edit EAF keybindings!" fun)))
(define-key map (kbd single-key) 'eaf-send-key))
(set-keymap-parent map eaf-mode-map*)
(cl-loop for (key . fun) in keybinding
do (let ((dummy (intern
(format "eaf-%s-%s" app-name fun))))
(eaf-dummy-function dummy fun key)
(define-key map (kbd key) dummy))
do (if (symbolp fun)
(define-key map (kbd key) fun)
(let ((dummy (intern
(format "eaf-%s-%s" app-name fun))))
(eaf-dummy-function dummy fun key)
(define-key map (kbd key) dummy)))
finally return map))))
(defun eaf-get-app-bindings (app-name)

Loading…
Cancel
Save