auctex
[Top][All Lists]
Advanced

[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 21:25:46 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

>> (defvar my-tex-abbrev-table nil)
>           ^^
>> ;; in a LaTeX-mode-hook:
>>   (setq local-abbrev-table 'sn-tex-abbrev-table)
>                               ^^

>> but it didn't work (C-x al give's an error and manually added didn't
>> load).

> Small wonder.

Ups, sorry. I'll write 100x "if you start to copy'n'paste, do it for
everything, not only some parts" later.

Here's the complete (non-working) snippet (now really copy'n'paste):

(defun sn-tex-mode-setup ()
  (define-key LaTeX-mode-map [return] 'newline-and-indent)
;;   (setq local-abbrev-table 'sn-tex-abbrev-table)
;;   (turn-off-filladapt-mode)
  (outline-minor-mode t))

(add-hook 'LaTeX-mode-hook 'sn-tex-mode-setup)

Anyhow: Why doesn't provide AucTeX it's own abbrev-table?

-- 
Until the next mail...,
Stefan.

Attachment: pgpMQrqlQejZU.pgp
Description: PGP signature


reply via email to

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