Code Monkey home page Code Monkey logo

recompile-on-save.el's Introduction

Trigger recompilation on file save

recompile-on-save.el

Author: Marian Schubert [email protected]
Version: 1.1

This package provides a way to automatically trigger recompilation when associated source buffer changes.

Installation

The easiest and preferred way to install recompile-on-save is to use the package available on MELPA.

Manual installation

Save recompile-on-save.el to a directory on your load-path (e.g., ~/.emacs.d/elisp), then add the following to your .emacs file:

 (require 'recompile-on-save)

Usage

You should have at least one source buffer and one compilation buffer. When you run M-x recompile-on-save in the source buffer it will ask you for a compilation buffer which you want to associate with it. After that, each save of the source buffer will trigger recompilation in the associated compilation buffer.

To make this process even easier you might defadvice any compilation function (e.g., compile) using recompile-on-save-advice, i.e.:

(recompile-on-save-advice compile)

This way source <-> compilation buffer association will happen automatically when you run M-x compile.

To (temporarily) disable automatic recompilation turn off recompile-on-save-mode.

To reset compilation buffers associations for current source buffer use M-x reset-recompile-on-save

recompile-on-save.el's People

Contributors

maio avatar

Watchers

Jason Milkins avatar James Cloos 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.