Hi all!
I'm trying to get the tab key to indent and dedent by 4 spaces when a
region is selected.
This is as far as I've got:
(add-hook 'python-mode-hook (lambda ()
(local-set-key [(tab)] 'python-shift-
right)
(local-set-key [(backtab)] 'python-shift-
left)
))
This works fine for when a region is selected, but overwrites the
default tab action of 'python-indent-line which is what I want to
happen when a region is not selected.
Any emacs experts know how to combine python hooks with the "region
selected" mode?
Thanks!
Eoghan
P.S. Maybe a good candidate for a
http://wiki.python.ie/moin.cgi/EmacsTips page?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---