auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] abbrev-table


From: David Kastrup
Subject: Re: [AUCTeX] abbrev-table
Date: Sat, 30 Sep 2006 21:28:22 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Nobis <address@hidden> writes:

> 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?

If that's the complete stuff, I don't see where you define the
abbrev-table.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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