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

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

Re: how can I tell emacs to treat a text file as html?


From: Pascal Bourguignon
Subject: Re: how can I tell emacs to treat a text file as html?
Date: 10 Apr 2005 03:15:15 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Angelina Carlton <brat@magma.ca> writes:

> On Sat, Apr 09, 2005 at 02:34:26PM -0400, Stefan Monnier wrote:
>  
> > (add-to-list 'auto-mode-alist '("\\`/tmp/nb_.*\\.txt\\'" . html-mode))
> 
> When I wrote the .emacs it didnt work, but upon restarting emacs it
> now does work,

Of course, editing a file doesn't change the state of the running
emacs lisp image.  To do that, you must execute the expressions, which
you can do for example with eval-region or eval-last-expression (type: 
C-x C-e with the cursor just after the expression to be evaluated).

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Small brave carnivores
Kill pine cones and mosquitoes
Fear vacuum cleaner


reply via email to

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