unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Garry <none@none.com>
Subject: Re: Remove all indentation - how to?
Date: Sun, 09 Feb 2003 22:01:21 +0000	[thread overview]
Message-ID: <b26irp$74h$1@newsg1.svr.pol.co.uk> (raw)
In-Reply-To: 87fzqy9r62.fsf@tiger.rapttech.com.au

Tim X wrote:
>>>>>>"Garry" == Garry  <none@none.com> writes:
>>>>>
> 
>  Garry> Piet van Oostrum wrote:
>  >>>>>>> Garry <none@none.com> (G) wrote:
>  >>>>>>
>  >>
>  G> Did it but to no avail. For example, if I press RET at the end of
>  G> a line of HTML which began with an indented <td> Emacs
>  G> automatically begins the next line beneath the previous tag. I
>  G> don't want this.
>  >>
>  >> (local-set-key "\C-m" 'newline) in the html-mode that you use.
> 
>  Garry> I appended this to my html-helper-mode.el but Emacs still
>  Garry> indents beneath the preceding tag.
> 
> I think you need to put the local-set-key in a load hook for
> html-helper.el, not in html-helper.el itself. You want this value set
> locally for buffers in html-helper-mode. Try something like
> 
> (add-hook 'html-helper-mode-hook (lambda ()
>                                     (local-set-key "\C-m" 'newline)))
> 
> The objective of this above load hook is to change the definition of
> RETURN from newline-and-indent to newline. Once you have added this
> hook and start a new html file using html-helper-mode (not an existing
> html-helper-mode buffer as the load hook only runs when the mode is
> loaded), try C-h k <return> to see what is bound to the return key -
> it should be just the function newline, not newline-and-indent..
> 
> If it is bound to just newline and you still find your code indenting
> to the same level as the previous line etc - then its probably due to
> one of the fill modes which you may also need to disable.
> 
> Tim
> 

Tim, you're a genius. Now I can grow my hair back :-)

Garry

      reply	other threads:[~2003-02-09 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 21:15 Remove all indentation - how to? Garry
2003-02-07 21:14 ` Edward O'Connor
2003-02-08 19:49   ` Garry
2003-02-08 20:40     ` Piet van Oostrum
2003-02-08 21:17       ` Garry
2003-02-09  1:30         ` Tim X
2003-02-09 22:01           ` Garry [this message]

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='b26irp$74h$1@newsg1.svr.pol.co.uk' \
    --to=none@none.com \
    /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).