Skeleton

From WikEmacs
Revision as of 14:59, 28 March 2012 by InCognito (talk | contribs) (Skeleton: Fix typo)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Common Customization

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 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)