You are not logged in.

#1 2008-03-30 14:35:07

gunnihinn
Member
From: Torreón, Mexico
Registered: 2007-10-28
Posts: 81

Emacs text mode indent trouble

I use Emacs for writing a lot of plain text (i.e. .txt files) and I'm having a bit of trouble with the text-mode default indent style.

What I want is pretty simple: Tabs should be 2 characters long (but still tabs, not spaces) and inserted whenever I press Tab, regardless of where in the text I am.

I've had no luck in figuring out how to get this behaviour though. I've edited the edit-tab-stops variable to what I want, but the Tab key still seems to be bound to some other command, and tab-stops seems to insert spaces anyway. Any other ideas?

Offline

#2 2008-03-30 15:53:44

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: Emacs text mode indent trouble

This page has a lot of information: http://www.pement.org/emacs_tabs.htm

Offline

#3 2008-03-30 17:59:40

gunnihinn
Member
From: Torreón, Mexico
Registered: 2007-10-28
Posts: 81

Re: Emacs text mode indent trouble

Brilliant, thanks so much! big_smile

I bound Tab to tab-to-tab-stop and added a text-mode-hook that defines tab-stop-list to what I want, works like a charm.

Offline

Board footer

Powered by FluxBB