unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: problem getting hooks to be active
Date: Fri, 15 Aug 2003 14:59:33 +0200	[thread overview]
Message-ID: <84u18j2i16.fsf@slowfox.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 227a55e9.0308110934.1eb23f37@posting.google.com

pemente@northpark.edu (Eric Pement) writes:

>    (add-hook 'sgml-mode-hook'
>         (lambda ()
>           (setq tab-width 2)

Do you know what tab-width does?  I'm guessing that the code is doing
what you tell it to, but it's not what you expect.

If the file contains literal tab characters, then the above line will
change how they are shown on screen.  It has absolutely (well,
almost) nothing to do with the TAB key.

>           (setq indent-tabs-mode nil)

Hm.  Well, do you have tab characters in your files?

> 	  (setq fill-column 85)

How do you know it is not taking effect?  What happens when you hit M-q?

>    ))

A completely wild speculation is that you actually want to set
sgml-indent-data to t to make it indent more often.  Then you want to
set sgml-indent-step to 2 (which is the default, afaik).

And for filling, maybe you want to turn on auto-fill mode?

Does this help?

If it doesn't, please explain in more detail what is happening.  For
example, show us an XML file, then describe which keys you press at
which location, and then show us the result you get and the result
you want to get instead.
-- 
Two cafe au lait please, but without milk.

  parent reply	other threads:[~2003-08-15 12:59 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
2003-08-15 14:54         ` Eric Pement
2003-08-15 12:59 ` Kai Großjohann [this message]
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=84u18j2i16.fsf@slowfox.is.informatik.uni-duisburg.de \
    --to=kai.grossjohann@gmx.net \
    /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).