unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Richard H Lee <ricardohenrylee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: multiline auto-indent in python-mode
Date: Fri, 22 Nov 2013 01:48:35 +0000	[thread overview]
Message-ID: <528EB7F3.5010907@gmail.com> (raw)

I'm using emacs 24.3.1 on cygwin64.

When in python mode I have a multiline section of code within a 
parenthesis, say:

print next(a for b in c
   if b = d)

If my cursor is at between 'd' and ')' and I hit space, emacs will 
indent the line I am on to the position of the opening parenthsis on the 
line above. Like so:

print next(a for b in c
            if b = d )

I just want python mode to not do any indentation as I have set up my 
own identation behaviour.

I tried setting python-mode-map to a fresh keymap, but it doesn't make 
any difference.



             reply	other threads:[~2013-11-22  1:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22  1:48 Richard H Lee [this message]
2013-11-22  2:51 ` multiline auto-indent in python-mode Richard H Lee

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=528EB7F3.5010907@gmail.com \
    --to=ricardohenrylee@gmail.com \
    --cc=help-gnu-emacs@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.
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).