help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: left brackets insert both


From: David Hansen
Subject: Re: left brackets insert both
Date: Fri, 25 Mar 2005 16:54:29 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

On 25 Mar 2005 07:37:20 -0800 Shug Boabby wrote:

> when the start of a brace pair was typed, one of [<[{(], the editor
> would insert the corresponding closing brace and place the cursor
> in-between. this worked for all text editing modes, but could be turned
> off when needed.

;;;; skeleton mode
(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)
(global-set-key "(" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)
(setq skeleton-pair t)

See (info "(autotype)Top")

David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]