Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define-keys #1193

Merged
merged 1 commit into from Dec 18, 2023
Merged

define-keys #1193

merged 1 commit into from Dec 18, 2023

Conversation

garlic0x1
Copy link
Contributor

A simple macro for defining multiple keys.

Example usage:

(define-keys *global-keymap*
  ("C-a b" 'describe-bindings)
  ("C-a k" 'describe-key)
  ("C-a a" 'lem-lisp-mode:lisp-apropos)
  ("C-a c" 'apropos-command)
  ("C-a p" 'lem-lisp-mode:lisp-apropos-package)
  ("C-a f" 'lem-lisp-mode:lisp-describe-symbol))

It is a macro only because I prefer the &body indentation for this. If you think a function is better, that is okay too.

Thank you.

@garlic0x1 garlic0x1 changed the title define keys define-keys Dec 17, 2023
@cxxxr cxxxr merged commit c8753b7 into lem-project:main Dec 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants