help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Adding a sublist to a list on startup


From: Drew Adams
Subject: RE: Adding a sublist to a list on startup
Date: Mon, 13 Dec 2010 13:17:41 -0800

> (defun my-LaTeX-hook ()
>   (push '("choices" . LaTeX-insert-choice) LaTeX-item-list)
>   (push '("parts" . LaTeX-insert-part) LaTeX-item-list)
>   (push '("questions" . LaTeX-insert-question) LaTeX-item-list)
>   (push '("choices" LaTeX-env-item) LaTeX-environment-list)
>   (push '("questions" LaTeX-env-item) LaTeX-environment-list)
>   (push '("parts" LaTeX-env-item) LaTeX-environment-list))
> 
> (add-hook 'LaTeX-mode-hook 'my-LaTeX-hook)
> 
> However, the last three push commands aren't doing what I expect.

I haven't used LaTeX in years (unfortunately), but is it perhaps because the
last three don't have a dot (.)? 

I also wonder why you don't just use Customize to customize `LaTeX-item-list'
(I'm assuming that it is a user option).  That's what Customize is for: it
type-checks changes you make.




reply via email to

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