[OS X TeX] Re: parentheses in pairs in Emacs

Patrick Gundlach pg at levana.de
Fri Aug 27 00:12:40 CEST 2004


Hi,


Tamas K Papp <tpapp at princeton.edu> writes:

> I am setting up my new Powerbook, and unfortunately don't have my
> previous .emacs file handy.
>
> I had some code that did the following in latex-mode: when I typed (,
> [, {, they came out in pairs, ie (), [], {}.  Does anybody have

what about:

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

(add-hook 'TeX-mode-hook
	  '(lambda ()
          (local-set-key .... )
          (local-set-key .... )))

Patrick
--
ConTeXt wiki: http://contextgarden.net
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list