From WikEmacs
Revision as of 16:19, 7 December 2012 by Bozhidar (talk | contribs) (Reverted edits by Debrita (talk) to last revision by Bozhidar)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description Insert the complex statement skeleton SKELETON describes very concisely.
Author name of author
Maintainer FSF
Part of Emacs yes

Skeleton library can be used to create documents based on templates.

Keep some chars always balanced

Use the below setting to insert paired characters with just a single keystroke.

For example, typing '(' will automatically insert '()' in to the buffer. Similarly typing '{' will automatically insert '{}'. This way parenthesis, quotes etc will always remain balanced. This setting is quite useful if you are editing Emacs Lisp, C etc.

(require 'skeleton)
(setq skeleton-pair t)
(global-set-key "\"" 'skeleton-pair-insert-maybe)
(global-set-key "(" 'skeleton-pair-insert-maybe)
(global-set-key "[" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)