Skip to content

emacs-berlin/syntactic-close

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Syntactic Close Build Status

Insert closing delimiter char(s), i.e. parenthesis, bracket(s), brace(s) or whatever is needed - think of syntactic consequence.

Honor multi-char pairs like triplequoted string, padding and escape-sequences.

For example when called at the end of an open string like

"\(^ *\|^Foo: *\|\( BAR\|'s\|Bad\|BAZ\|Bnter\(?: \(?:\(?:sam\|th

C-u M-x syntactic-close RET should result in

"\(^ *\|^Foo: *\|\( BAR\|'s\|Bad\|BAZ\|Bnter\(?: \(?:\(?:sam\|th\)\)\)\)\)"

That way continuation may be inserted by just one key.

Sometimes language-specific treatment is needed.

Currently supports the following modes:

agda2-mode emacs-lisp-mode html-mode js-mode mhtml-mode nxml-mode org-mode php-mode python-mode ruby-mode sgml-mode web-mode xml-mode xxml-mode

Feel free to file a feature request should your favourite mode not being mentioned.

A first draft was proposed at emacs-devel mailing-list: http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00512.html

About

Insert closing delimiter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages