Repeated detection and execution of key operation.
Sample install code using leaf.el.
(leaf dmacro
:ensure t
:custom `((dmacro-key . ,(kbd "C-S-e")))
:global-minor-mode global-dmacro-mode)
First turn on dmacro-mode
or global-dmacro-mode
.
Then press dmacro-key
after making repeated edits.
abc abc _
^(point)
after type dmacro-key
, your buffer should be…
abc abc abc _
and type dmacro-key
, then…
abc abc abc abc _
abcdef ab_
^(point)
after type dmacro-key
, your buffer should be…
abcdef abcdef _
and type dmacro-key
, then…
abcdef abcdef abcdef _
- dmacro-key
- Key sequences for dmacro
[NOTE]: You have to set this variable before
dmacro-mode
is started.
We welcome PR!
- keg
cd ~/ gh repo clone conao3/keg.el .keg export PATH="$HOME/.keg/bin:$PATH"
We recommend the following operation flow:
make # Install git-hooks in local .git
git branch [feature-branch] # Create branch named [feature-branch]
git switch [feature-branch] # Switch branch named [feature-branch]
# <edit loop>
emacs dmacro.el # Edit something you want
make test # Test dmacro via multi version Emacs (but there is no test now...)
git commit -am "brabra" # Commit (auto-run test before commit)
# </edit loop>
gh repo fork # Create fork at GitHub
git push origin [feature-branch] # Push feature-branch to your fork
gh pr create # Create pull-request
FSFAP Copyright (c) 1993 Toshiyuki Masui https://github.com/emacs-jp/dmacro/blob/master/LICENSE