all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Customizing tab stops
@ 2009-01-04 16:54 kj
  2009-01-05 21:14 ` Lowell Gilbert
  2009-01-07  4:19 ` Chetan
  0 siblings, 2 replies; 4+ messages in thread
From: kj @ 2009-01-04 16:54 UTC (permalink / raw
  To: help-gnu-emacs



In a Fundamental-mode buffer, inserting a tab causes the cursor to
jump to the next tab stop.  By default these tab stops are at
positions 8, 16, 24, etc.  I would like to customize these spacings
for a particular buffer.

I thought that the variable tab-stop-list would do the trick.  So
I made it local to the buffer, and used the command edit-tab-stops
to edit its value.  Originally its value was the default

(8 16 24 32 40 48 56 64 72 80 88 96 104 112 120)

and I changed it to

(16 27 58 68)

...but the display of the buffer was not affected; i.e. the
tab-separated fields in the buffer remained at the default tab
stops.

I realize that the customized local value of tab-stop-list does
affect the behavior of the tab-to-tab-stop command in this buffer,
but this is not what I'm interested in.  I want to affect how Emacs
*displays* the text that follows a tab.

Is there a way to customize such display? 

TIA!

Kynn
-- 
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customizing tab stops
  2009-01-04 16:54 Customizing tab stops kj
@ 2009-01-05 21:14 ` Lowell Gilbert
  2009-01-06  3:01   ` poppyer
  2009-01-07  4:19 ` Chetan
  1 sibling, 1 reply; 4+ messages in thread
From: Lowell Gilbert @ 2009-01-05 21:14 UTC (permalink / raw
  To: help-gnu-emacs

kj <socyl@987jk.com.invalid> writes:

> In a Fundamental-mode buffer, inserting a tab causes the cursor to
> jump to the next tab stop.  By default these tab stops are at
> positions 8, 16, 24, etc.  I would like to customize these spacings
> for a particular buffer.
>
> I thought that the variable tab-stop-list would do the trick.  So
> I made it local to the buffer, and used the command edit-tab-stops
> to edit its value.  Originally its value was the default
>
> (8 16 24 32 40 48 56 64 72 80 88 96 104 112 120)
>
> and I changed it to
>
> (16 27 58 68)
>
> ...but the display of the buffer was not affected; i.e. the
> tab-separated fields in the buffer remained at the default tab
> stops.
>
> I realize that the customized local value of tab-stop-list does
> affect the behavior of the tab-to-tab-stop command in this buffer,
> but this is not what I'm interested in.  I want to affect how Emacs
> *displays* the text that follows a tab.
>
> Is there a way to customize such display? 

The tab key doesn't run tab-to-tab-stop in fundamental mode, unless you
configure it to do so.  It sounds to me like that's what you want to
do.  I think global-set-key might be the best way to do this for
fundamental-mode, although I wonder if fundamental-mode is really what
you want for whatever you're really trying to do...


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customizing tab stops
  2009-01-05 21:14 ` Lowell Gilbert
@ 2009-01-06  3:01   ` poppyer
  0 siblings, 0 replies; 4+ messages in thread
From: poppyer @ 2009-01-06  3:01 UTC (permalink / raw
  To: help-gnu-emacs


Lowell Gilbert <lgusenet@be-well.ilk.org> writes:

: kj <socyl@987jk.com.invalid> writes:
:
:> In a Fundamental-mode buffer, inserting a tab causes the cursor to
:> jump to the next tab stop.  By default these tab stops are at
:> positions 8, 16, 24, etc.  I would like to customize these spacings
:> for a particular buffer.
:>
:> I thought that the variable tab-stop-list would do the trick.  So
:> I made it local to the buffer, and used the command edit-tab-stops
:> to edit its value.  Originally its value was the default
:>
:> (8 16 24 32 40 48 56 64 72 80 88 96 104 112 120)
:>
:> and I changed it to
:>
:> (16 27 58 68)
:>
:> ...but the display of the buffer was not affected; i.e. the
:> tab-separated fields in the buffer remained at the default tab
:> stops.
:>
:> I realize that the customized local value of tab-stop-list does
:> affect the behavior of the tab-to-tab-stop command in this buffer,
:> but this is not what I'm interested in.  I want to affect how Emacs
:> *displays* the text that follows a tab.
:>
:> Is there a way to customize such display? 

setq default-tab-width will do part of the job, but I don't know if it
will suit your needs, because your tab-stops are uneven.

poppyer


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customizing tab stops
  2009-01-04 16:54 Customizing tab stops kj
  2009-01-05 21:14 ` Lowell Gilbert
@ 2009-01-07  4:19 ` Chetan
  1 sibling, 0 replies; 4+ messages in thread
From: Chetan @ 2009-01-07  4:19 UTC (permalink / raw
  To: help-gnu-emacs

kj <socyl@987jk.com.invalid> writes:

> In a Fundamental-mode buffer, inserting a tab causes the cursor to
> jump to the next tab stop.  By default these tab stops are at
> positions 8, 16, 24, etc.  I would like to customize these spacings
> for a particular buffer.
>
> I thought that the variable tab-stop-list would do the trick.  So
> I made it local to the buffer, and used the command edit-tab-stops
> to edit its value.  Originally its value was the default
>
> (8 16 24 32 40 48 56 64 72 80 88 96 104 112 120)
>
> and I changed it to
>
> (16 27 58 68)
>
> ...but the display of the buffer was not affected; i.e. the
> tab-separated fields in the buffer remained at the default tab
> stops.
>
> I realize that the customized local value of tab-stop-list does
> affect the behavior of the tab-to-tab-stop command in this buffer,
> but this is not what I'm interested in.  I want to affect how Emacs
> *displays* the text that follows a tab.
>
> Is there a way to customize such display? 
>
> TIA!
>
> Kynn

I have been wondering such word processor like features are available
in any text editors.  Where was this file created?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-07  4:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 16:54 Customizing tab stops kj
2009-01-05 21:14 ` Lowell Gilbert
2009-01-06  3:01   ` poppyer
2009-01-07  4:19 ` Chetan

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.