Article View: gnu.emacs.help
Article #188785Re: Defining abbrevs for LaTeX mode
From: Martin Neitzel
Date: Tue, 09 Jul 1991 15:01
Date: Tue, 09 Jul 1991 15:01
19 lines
1429 bytes
1429 bytes
While we are on the topic of (La)TeX & abbrevs:
When editing TeX files, I use text-mode-abbrev-table overshadowed by a
special latex-mode-abbrev-table. This is run as hook among other
things:
(defun tex-use-special-abbrevs ()
"Use text-mode-abbrev-table as global table and tex-mode-abbrev-table
locally. This enables you to define special abbrevs expanding into to
crude TeX construct, e.g. `eg' may automatically become `e.g.' in
text-mode and `e.\,g.' in TeX-mode."
(defvar latex-mode-abbrev-table nil
"Abbrev table used while in tex-mode")
(define-abbrev-table 'latex-mode-abbrev-table ())
(setq local-abbrev-table latex-mode-abbrev-table)
(make-local-variable 'global-abbrev-table)
(setq global-abbrev-table text-mode-abbrev-table))
Technical Details
Message-ID:
<4085@infbs.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!infbs!neitzel@infbs.uucpReferences:
<9107021511.AA11181@life.ai.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b9a,7f90ea2ea55c3ed8 X-Google-Attributes: gid102b9a,public X-Google-Thread: 103b8b,7f90ea2ea55c3ed8 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-07-09 11:34:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!infbs!neitzel@infbs.uucp From: neitzel@infbs.uucp (Martin Neitzel) Newsgroups: gnu.emacs.help,comp.emacs Subject: Re: Defining abbrevs for LaTeX mode Summary: another abbrev trick Message-ID: <4085@infbs.UUCP> Date: 9 Jul 91 15:01:39 GMT References: <9107021511.AA11181@life.ai.mit.edu> Sender: neitzel@infbs.UUCP Organization: TU Braunschweig, CS Dept., FRG Lines: 19