all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: Auto-Indent
Date: 30 Nov 2003 08:08:10 +0200	[thread overview]
Message-ID: <uptfas81h.fsf@elta.co.il> (raw)
In-Reply-To: <%kLxb.35845$mU6.122676@newsb.telia.net> (message from digits on Fri, 28 Nov 2003 17:11:23 GMT)

> From: digits <digits@gentoo.se>
> Newsgroups: gnu.emacs.help
> Date: Fri, 28 Nov 2003 17:11:23 GMT
> 
> I can't find any information on how to solve this (simple) matter.

You should be able to find it in the node "Basic Indent" of the Emacs
manual.  Care to tell how you tried to look for it and come you didn't
find it?

> That Emacs keep the amount of tab's at the beginning of the line when I 
> press enter, no matter which mode I am in.

Emacs already does that in most modes, but the command to do it is by
default bound to C-j, for which many keyboards lack a key (if you
have a keyboard with a key labeled "LFD", try using it instead of the
Return key).  You could either type Ctrl-j to get what you want, or
you could bind this function to the Return key, by putting this:

(global-set-key "\C-m" 'newline-and-indent)

into your ~/.emacs init file.

> Is there a way for this, or should I start looking into other editors - 
> because this is a must have for me.

Threats?  Not very nice, IMHO.

  reply	other threads:[~2003-11-30  6:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-28 17:11 Auto-Indent digits
2003-11-30  6:08 ` Eli Zaretskii [this message]
     [not found] ` <mailman.804.1070176088.399.help-gnu-emacs@gnu.org>
2003-12-01 16:52   ` Auto-Indent digits
  -- strict thread matches above, loose matches on Subject: below --
2003-12-31 13:58 auto-indent hastenthunder
2003-12-30 22:40 auto-indent hastenthunder
2003-12-31  2:36 ` auto-indent Gernot Hassenpflug
2002-11-16  2:51 auto-indent Michael P. Soulier
2002-11-16 18:57 ` auto-indent Kai Großjohann
2002-11-18 17:44 ` auto-indent Michael P. Soulier
2002-11-19 14:53   ` auto-indent Kai Großjohann
2002-11-20 17:35     ` auto-indent Michael P. Soulier

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

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

  git send-email \
    --in-reply-to=uptfas81h.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.