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

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

Re: problem getting hooks to be active


From: Peter Solodov
Subject: Re: problem getting hooks to be active
Date: Tue, 12 Aug 2003 12:54:14 -0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

On 12 Aug 2003, Eric Pement wrote:
> So what should I have written instead that will change the variables
> while in sgml-mode?

(add-hook 'sgml-mode-hook
  (lambda ()
    (setq tab-width 2)
    (setq indent-tabs-mode nil)
    (setq fill-column 85)))

That code worked just now.  It doesn't appear very different (or at
all) from what you've shown.

Put code above into "*scratch*" buffer and evaluate it (press "C-x
C-e" at the end of the last line).  Then try to open SGML file.  If
that works, then you're not putting your code into the right place.

        - Peter

-- 
Peter Solodov                    | Concordia University 
http://alcor.concordia.ca/~peter | Montreal, QC, Canada


reply via email to

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