Coder Social home page Coder Social logo

dmacro's Introduction

./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

dmacro's People

Contributors

conao3 avatar zonuexe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.