Giter Club home page Giter Club logo

om-mode's Introduction

Om-mode

Om-mode is a minor mode that provides the following:

  • Insert a template for an Om component.
  • Includes all of the Om life cycle protocols.
  • Jump back and forth between positions in the template.
  • User-configurable abbrev that will expand the template.

Installation

MELPA

M-x package-install RET om-mode

Please make sure you have Marmalade or MELPA in your package archives.

(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                         ("marmalade" . "http://marmalade-repo.org/packages/")
                         ("melpa" . "http://melpa.milkbox.net/packages/")))

Manual

Just put om-mode.el anywhere on your load path (or load the file manually).

Usage

Invoke the template with M-x om–insert-template.

Alternatively, type “om” and automatic expansion will occur. For this to work, either turn on abbrev-mode in the buffer, or put (setq-default abbrev-mode t) in your init file. After template insertion, next-line and previous-line will jump to places of interest in the template. When you’ve finished editing the template, type C-c C-c or invoke M-x om-exit-edit. This will reinstate the original bindings for next-line and previous-line.

Type M-x customize-group RET om-mode to change the abbreviation to expand the template. The default is “om”.

Contributing

I will gladly accept pull requests with enhancements, features, refactorings, alternate implementations.

  1. Fork the repository.
  2. Make changes.
  3. Submit a pull request.

Credits

I wish to thank Steve Purcell for his guidance and expertise.

om-mode's People

Contributors

danielsz avatar purcell avatar

Stargazers

Anton Strilchuk avatar Matthias Nehlsen avatar Don Jackson avatar Alex Weiksnar avatar Andrew Moreland avatar Aistis Raulinaitis avatar Daniel Slutsky avatar Claudia Doppioslash avatar jinweitang avatar hamlet avatar Biao Xie avatar Joseph Fahey avatar Chris McDevitt avatar John Walker avatar

Watchers

James Cloos avatar  avatar Daniel Slutsky 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.