leoliu / repeatable.el Goto Github PK
View Code? Open in Web Editor NEWmake repeatable commands
make repeatable commands
Thanks for repeatable.el
, I'm just starting to play with it.
I wonder, is there an easy way to extend it ("easily") so that it can be applied to all functions with a keymap? For example, if my keymap is bound to C-x C-g and I have keybindings such as C-n and C-p, I'd like to be able to do C-x C-g C-n C-n C-p. Using the following code, I can do either the C-n or the C-p repeating, but not swap between them:
(require 'repeatable)
(define-prefix-command 'my-magit-map)
(global-set-key (kbd "C-x C-g") 'my-magit-map)
(define-key my-magit-map (kbd "C-g") 'magit-status)
(define-key my-magit-map (kbd "C-n") (make-command-repeatable 'git-gutter:next-hunk))
(define-key my-magit-map (kbd "C-p") (make-command-repeatable 'git-gutter:previous-hunk))
(define-key my-magit-map (kbd "t") 'git-gutter:toggle)
Perhaps something like this stackoverflow answer is a good starting point. I'm not strong in elisp, so I'm not 100% if there is a better generic way to handle this, perhaps to provide a function that in-place adjusts a keymap.
Thoughts?
I found your package via EmacsWiki:Repeatble, where it points here as well as to Martin Blais' same-named file. It appears that yours is much more recently updated, for example taking into account the change from set-temporary-overlay-map
to set-transient-map
. Are there any other connections between the apps?
To reproduce:
It is bound to C-M-d.
(paredit-forward-down &rest ARGS)
Move forward down into a list.
With a positive argument, move forward down that many levels.
With a negative argument, move backward down that many levels.
This is a repeatable command.
(fn &optional ARGUMENT)
The issue is paredit-annotate-functions-with-examples
seems to be called after repeatable-after-load-hook
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.