Elements have the form ((KEY . [MAP]) CMD ORIGINAL-CMD)")
+;;;###autoload
(defmacro bind-key (key-name command &optional keymap)
"Bind KEY-NAME to COMMAND in KEYMAP (`global-map' if not passed).
personal-keybindings)
(define-key (or ,keymap global-map) ,keyvar ,command))))
+;;;###autoload
(defmacro unbind-key (key-name &optional keymap)
`(bind-key ,key-name nil ,keymap))
+;;;###autoload
(defmacro bind-key* (key-name command)
`(bind-key ,key-name ,command override-global-map))
+;;;###autoload
(defmacro bind-keys (&rest args)
"Bind multiple keys at once.
`((bind-key ,(car form) ',(cdr form))))))
key-bindings))))))
+;;;###autoload
(defmacro bind-keys* (&rest args)
`(bind-keys :map override-global-map ,@args))
(t
(cons (string< (caar l) (caar r)) nil)))))
+;;;###autoload
(defun describe-personal-keybindings ()
"Display all the personal keybindings defined by `bind-key'."
(interactive)
(setq last-binding binding)))))
(provide 'bind-key)
+
;; Local Variables:
;; indent-tabs-mode: nil
;; End:
+
;;; bind-key.el ends here