Article View: gnu.emacs.help
Article #188763Re: Defining abbrevs for LaTeX mode
From: Massimo Poesio
Date: Tue, 02 Jul 1991 23:08
Date: Tue, 02 Jul 1991 23:08
26 lines
1606 bytes
1606 bytes
Thanks to all who responded. As kindly pointed out by S.Marshall,
the problem with my solution was that I had to modify the character class
of "\" to "word constituent" ("w"). (I had tried to set it
to "symbol constituent", "_", but that didn't work.) Here is what you have
to put in your tex-mode-hook (assuming the tex mode you use has one)
to get the abbrevs:
(setq LaTeX-abbrev-table (make-abbrev-table))
(define-abbrev LaTeX-abbrev-table "\\be" "\\begin" nil)
;;; <other abbrevs>
(setq abbrev-mode t)
(setq local-abbrev-table LaTeX-abbrev-table)
(modify-syntax-entry 92 "w")
--
Massimo Poesio
University of Rochester
Computer Science Department
Rochester, NY 14627
email: poesio@cs.rochester.edu
phone: (716) 275-5605
Technical Details
Message-ID:
<POESIO.91Jul2190846@lark.cs.rochester.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!ub!galileo.cc.rochester.edu!rochester!poesioReferences:
<POESIO.91Jul1110628@nectarine.cs.rochester.edu> <PRESBERG.91Jul2135859@etoile.compass.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,5e792484dff3cc72 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-07-02 22:42:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!ub!galileo.cc.rochester.edu!rochester!poesio From: poesio@cs.rochester.edu (Massimo Poesio) Newsgroups: gnu.emacs.help Subject: Re: Defining abbrevs for LaTeX mode Message-ID: <POESIO.91Jul2190846@lark.cs.rochester.edu> Date: 2 Jul 91 23:08:46 GMT References: <POESIO.91Jul1110628@nectarine.cs.rochester.edu> <PRESBERG.91Jul2135859@etoile.compass.COM> Sender: poesio@cs.rochester.edu (Massimo Poesio) Organization: University of Rochester Lines: 26 In-Reply-To: presberg@compass.COM's message of 2 Jul 91 17:58:59 GMT Nntp-Posting-Host: lark.cs.rochester.edu