[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] abbrev-table
From: |
Stefan Nobis |
Subject: |
Re: [AUCTeX] abbrev-table |
Date: |
Sat, 30 Sep 2006 22:38:07 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> (setq local-abbrev-table sn-tex-abbrev-table)
Arg! Yes, it's a variable. Thank you very much for patiently opening
my eyes. This is the code that works exactly as I wish
(define-abbrev-table is needed to make it public, so abbrev-mode saves
interactivley added abbrevs and loads them on startup):
,----
| (defvar sn-tex-abbrev-table nil)
| (define-abbrev-table 'sn-tex-abbrev-table (make-abbrev-table))
| (defun sn-tex-mode-setup ()
| (define-key LaTeX-mode-map [return] 'newline-and-indent)
| (setq local-abbrev-table sn-tex-abbrev-table)
| (outline-minor-mode t))
|
| (add-hook 'LaTeX-mode-hook 'sn-tex-mode-setup)
`----
--
Until the next mail...,
Stefan.
pgpiCTPwGdWwJ.pgp
Description: PGP signature