Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abo-abo/centimacro
Assign multiple macros as global key bindings in Emacs
https://github.com/abo-abo/centimacro
Last synced: about 2 months ago
JSON representation
Assign multiple macros as global key bindings in Emacs
- Host: GitHub
- URL: https://github.com/abo-abo/centimacro
- Owner: abo-abo
- Created: 2014-01-16T10:50:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T11:33:18.000Z (over 3 years ago)
- Last Synced: 2024-05-09T21:05:44.655Z (5 months ago)
- Language: Emacs Lisp
- Size: 3.91 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro and setup
This package allows to (temporarily) bind any number of macros to any
global shortcuts.The setup is simply:
(require 'centimacro)
# Function reference
## `centi-assign`
It's the main function, assigned to `` by default.It's very similar to ``, except `centi-assign` prompts you for a
key combination to use, while for `` this key combination is
always ``.With `centi-assign` you can have as many macros as you wish, bound to
whatever global keys you wish.`centi-assign` will work with any global binding, i.e. you could even
re-bind `a` to insert `b` if you wanted.Here's an example:
foo ;; Now inserts "foo".
bar ;; Now inserts "foobar".
-- ;; Now inserts "foo-foobar-foo".
omg ;; Now inserts "omg",
;; - "omgbar",
;; - "omgbar-omg-omg".
## `centi-summary`
Here's the result of `centi-summary` after the example above:[f8]: [f6 f7 f6] (was bookmark-bmenu-list)
[f7]: [f6 98 97 114] (was winner-undo)
[f6]: foo (was next-error)## `centi-restore-all`
Calling `centi-restore-all` will restore the previous global bindings.