2
votes
2answers
109 views

Disable automatic alignment for Python code in emacs

Right now, in emacs' python-mode line continuations are aligned to the end of the previous line, as follows: this_is_a_list_of_django_urls = ('', url(r'^admin/?', ...
1
vote
1answer
309 views

Backspace problems in python-mode

I'm having trouble getting the py-electric-backspace command to execute when I hit backspace at the end of a line of only spaces in python-mode. When I hit backspace it deletes individual spaces, not ...
27
votes
5answers
14k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...