Skip to content

emacs-jp/dmacro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 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]: If you change this variable after dmacro-mode is started, you need to restart dmacro-mode to reflect the change.

Information

Contribution

We welcome PR!

Require tools for testing

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

Running test

Below operation flow is recommended.

make                              # Install git-hooks in local .git

git branch [feature-branch]       # Create branch named [feature-branch]
git checkout [feature-branch]     # Checkout branch named [feature-branch]

# <edit loop>
emacs dmacro.el                   # Edit something you want

make test                         # Test dmacro via multi version Emacs
git commit -am "brabra"           # Commit (auto-run test before commit)
# </edit loop>

hub fork                          # Create fork at GitHub
git push [user] [feature-branch]  # Push feature-branch to your fork
hub pull-request                  # 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