unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lowell Gilbert <lgusenet@be-well.ilk.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Customizing tab stops
Date: Mon, 05 Jan 2009 16:14:01 -0500	[thread overview]
Message-ID: <44prj1qwva.fsf@be-well.ilk.org> (raw)
In-Reply-To: gjqpjr$5iq$1@reader1.panix.com

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...


  reply	other threads:[~2009-01-05 21:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04 16:54 Customizing tab stops kj
2009-01-05 21:14 ` Lowell Gilbert [this message]
2009-01-06  3:01   ` poppyer
2009-01-07  4:19 ` Chetan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44prj1qwva.fsf@be-well.ilk.org \
    --to=lgusenet@be-well.ilk.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).