Skip to content

Repeated detection and execution of key operation

License

Notifications You must be signed in to change notification settings

emacs-jp/dmacro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

./images/dmacro-header.png https://img.shields.io/github/license/emacs-jp/dmacro.svg?style=flat-square https://img.shields.io/github/tag/emacs-jp/dmacro.svg?style=flat-square https://github.com/emacs-jp/dmacro/workflows/Main%20workflow/badge.svg

Table of Contents

Description

./images/dmacro-demo.gif

Repeated detection and execution of key operation.

Install

Sample install code using leaf.el.

(leaf dmacro
  :ensure t
  :custom `((dmacro-key . ,(kbd "C-S-e")))
  :global-minor-mode global-dmacro-mode)

Usage

First turn on dmacro-mode or global-dmacro-mode.

Then press dmacro-key after making repeated edits.

Example1

abc abc _
        ^(point)

after type dmacro-key, your buffer should be…

abc abc abc _

and type dmacro-key, then…

abc abc abc abc _

Example2

abcdef ab_
         ^(point)

after type dmacro-key, your buffer should be…

abcdef abcdef _

and type dmacro-key, then…

abcdef abcdef abcdef _

Customize

dmacro-key
Key sequences for dmacro

[NOTE]: You have to set this variable before dmacro-mode is started.

Information

Contribution

We welcome PR!

Require tools for testing

  • keg
    cd ~/
    gh repo clone conao3/keg.el .keg
    export PATH="$HOME/.keg/bin:$PATH"
        

Running test

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

License

FSFAP
Copyright (c) 1993 Toshiyuki Masui
https://github.com/emacs-jp/dmacro/blob/master/LICENSE

About

Repeated detection and execution of key operation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •