unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Solodov <peter@alcor.concordia.ca>
Subject: Re: problem getting hooks to be active
Date: Tue, 12 Aug 2003 12:54:14 -0400	[thread overview]
Message-ID: <87isp2u895.fsf@lorien.concordia.ca> (raw)
In-Reply-To: 227a55e9.0308120832.2269bcb3@posting.google.com

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	other threads:[~2003-08-12 16:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 17:34 problem getting hooks to be active Eric Pement
2003-08-11 17:45 ` Peter Solodov
2003-08-11 18:26   ` Johan Bockgård
2003-08-11 18:30   ` Barry Margolin
2003-08-12 16:32     ` Eric Pement
2003-08-12 16:54       ` Peter Solodov [this message]
2003-08-15 14:54         ` Eric Pement
2003-08-15 12:59 ` Kai Großjohann
2003-08-20 15:46   ` Eric Pement
2003-08-24 12:58     ` Kai Großjohann
2003-08-20 17:29   ` Eric Pement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87isp2u895.fsf@lorien.concordia.ca \
    --to=peter@alcor.concordia.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).