all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: Bastian Ballmann <balle@chaostal.de>
Cc: python-list@python.org, help-gnu-emacs@gnu.org
Subject: Re: Emacs Python indention
Date: Sun, 12 Jun 2011 12:59:55 +0200	[thread overview]
Message-ID: <sa0fwnfmi1g.fsf@gmail.com> (raw)
In-Reply-To: <20110611224311.62a6e5b1@chaostal.de>

Bastian Ballmann <balle@chaostal.de> writes:

> Hi Emacs / Python coders,
>
> moving a region of python code for more than one indention in Emacs is
> quite annoying, cause the python-shift-left and -right functions always
> loose the mark and one has to reactivate it with \C-x \C-x or
> guess how many indentions one want to make and do a \C-u <nr> \C-c >
>
> That were the only solutions I found on the net and well both are
> not very comfortable so here's a fix for that. With the following code
> you can use \C-c left and right to move your Python code to the left
> and to the right :)
> HF
>
> Basti

[...]


Nice functions...
But actually I use python-mode.el from the bzr trunk and the indentation
works really nicely, with C-c > or C-c <, and doesn't lose the mark.

Another nice thing is that often TAB does also the right thing,
indenting or unindenting if for example we add remove one level.



      reply	other threads:[~2011-06-12 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-11 20:43 Emacs Python indention Bastian Ballmann
2011-06-12 10:59 ` Andrea Crotti [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

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

  git send-email \
    --in-reply-to=sa0fwnfmi1g.fsf@gmail.com \
    --to=andrea.crotti.0@gmail.com \
    --cc=balle@chaostal.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=python-list@python.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.