Git Product home page Git Product logo

aftersave.el's Introduction

aftersave.el

When developing software, I tend to notice sometimes that I do repetitive tasks on my session; at some point, I stop and create a quick function on my *scratch* that executes a bunch of steps in one go and add an after-save-hook for it on my current buffer.

This package helps removing manual steps in the development cycle. If you need to execute the same commands after a save (run tests, restart browser, etc.), this package allows you to add an Emacs function in the after-save-hook of the editor (or the local buffer).

aftersave

Usage

  1. Put on your .emacs.d/init.el
(require 'aftersave)
  1. Then M-x aftersave-add-hook
  2. Select your preferred function to execute after a save
  3. Profit!

If you at some point, you want to stop execute the given function after a save:

  1. M-x aftersave-remove-hook
  2. Pick the function you want to remove
  3. Done!

Local hooks

If you use Ctrl-u before excuting the aftersave commands, you will add the after-save-hook to the current buffer only.

Credits

Code inspired by ideas from Tavis Rudd

aftersave.el's People

Contributors

roman avatar

Stargazers

 avatar  avatar

Watchers

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