all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* multiline auto-indent in python-mode
@ 2013-11-22  1:48 Richard H Lee
  2013-11-22  2:51 ` Richard H Lee
  0 siblings, 1 reply; 2+ messages in thread
From: Richard H Lee @ 2013-11-22  1:48 UTC (permalink / raw
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multiline auto-indent in python-mode
  2013-11-22  1:48 multiline auto-indent in python-mode Richard H Lee
@ 2013-11-22  2:51 ` Richard H Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Richard H Lee @ 2013-11-22  2:51 UTC (permalink / raw
  To: help-gnu-emacs

I had to remove python-indent-post-self-insert-function from the 
post-self-insert-hook hook.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-22  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-22  1:48 multiline auto-indent in python-mode Richard H Lee
2013-11-22  2:51 ` Richard H Lee

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.