all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: fgallina@gnu.org (Fabián Ezequiel Gallina)
To: 19691-done@debbugs.gnu.org
Subject: bug#19691: 24.4; python.el: indentation RFE
Date: Fri, 30 Jan 2015 00:52:32 -0300	[thread overview]
Message-ID: <87zj90aprz.fsf@gnu.org> (raw)
In-Reply-To: <87vbjt4o1d.fsf@gmail.com>

tags 19691 + notabug
quit


Hi Carlos,

The functionality already exists, it's a matter of toggling
`electric-indent-mode` OR alternate between using RET and `C-j` for
creating a newline (depending the case).

When `electric-indent-mode` is enabled, you can achieve what you want by
using `C-j`, while RET would indent just like you see right now.

When `electric-indent-mode` is disabled, you can achieve what you want
by using RET, and `C-j` would indent.

If what you want is to keep the current column in places where there are
several indentation levels involved, then `C-a C-j` or `C-a RET`
(depending on the status `electric-indent-mode`) will help.



Cheers,
Fabián





  reply	other threads:[~2015-01-30  3:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 14:25 bug#19691: 24.4; python.el: indentation RFE Carlos Pita
2015-01-30  3:52 ` Fabián Ezequiel Gallina [this message]
     [not found] ` <handler.19691.D19691.14225899572400.notifdone@debbugs.gnu.org>
2015-01-30 10:18   ` bug#19691: closed (24.4; python.el: indentation RFE) Carlos Pita
2015-02-02 20:28 ` bug#19691: Carlos Pita
2015-02-04 22:56   ` bug#19691: Fabián Ezequiel Gallina

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=87zj90aprz.fsf@gnu.org \
    --to=fgallina@gnu.org \
    --cc=19691-done@debbugs.gnu.org \
    /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.