The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
perl: printf indentation problem wolwy_pete Shell Programming and Scripting 5 03-27-2008 08:09 PM
A question of indentation Michael Iatrou High Level Programming 1 12-23-2006 05:29 PM
emacs as a line editor annemar UNIX for Dummies Questions & Answers 5 11-30-2005 12:41 PM
Help on EMACS VENC22 UNIX for Dummies Questions & Answers 4 07-14-2005 02:14 AM
Making Emacs to show line number saurya_s UNIX for Dummies Questions & Answers 9 01-28-2004 01:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-18-2008
Rledley Rledley is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 7
Question Emacs line indentation

Hi. I'm writing a document in Python, so indentation is crucial.

I want to indent a whole section by exactly one tab. Any idea how to go about this? I'm using terminal emacs (no mouse input)

Thanks for any help!
  #2 (permalink)  
Old 11-18-2008
spirtle spirtle is offline
Registered User
  
 

Join Date: Jun 2008
Location: Scotland
Posts: 150
I guess Python is a little tricky because emacs cannot use the usual C-M-q to indent a code block since the indentation defines the block!
How about C-x TAB ( the indent-rigidly command) which shifts the selected region? The command takes an argument in the usual way to specify the number of spaces to move, e.g. C-u n C-x TAB to move the selected text n spaces. n can be negative to un-indent.
  #3 (permalink)  
Old 11-18-2008
Rledley Rledley is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 7
Great. Thank you. This actually only inserts a space, but I'm not complaining.
Closed Thread

Bookmarks

Tags
emacs, indentation, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0