Skip to content

Emacs minor mode to enclose cursor within punctuation pairs

Notifications You must be signed in to change notification settings

rejeep/enclose.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enclose Build Status

Enclose is a minor mode for Emacs that encloses cursor within punctuation pairs. For example, hitting the key ( will insert () and place the cursor in between.

Installation

I recommend installing via ELPA, but manual installation is simple as well:

(add-to-list 'load-path "/path/to/enclose")
(require 'enclose)

Usage

Start enclose-mode using.

(enclose-mode t)

or

M-x enclose-mode

Now try pressing any of the following keys: ", ', (, {, [.

For more information, see comments in enclose.el.

Contribution

Contribution is much welcome! Enclose is tested using Ecukes. When adding new features, please write tests for them!

Install cask if you haven't already, then:

$ cd /path/to/enclose
$ cask

Run all tests with:

$ make

About

Emacs minor mode to enclose cursor within punctuation pairs

Resources

Stars

Watchers

Forks

Packages

No packages published