Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.