all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs and tab stops
@ 2008-09-10 20:14 tano
  2008-09-11  3:11 ` Eli Zaretskii
  2008-09-11  4:53 ` Kevin Rodgers
  0 siblings, 2 replies; 5+ messages in thread
From: tano @ 2008-09-10 20:14 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,
I used to run emacs always in fundamental mode, because I do not
like automatic indentation, so I put a line in my .emacs file
like (setq auto-mode-alist nil) to leave my tab stop every 8 chars.
However with new versions of emacs seems that things are changed.
Even if I run fundamental mode, tab stops does not follow the standard
indentation every 8 chars, but goes in the first char after a space
on the previous line, for example.
How can I set up things so that it work as I want?
The previous answer talk me about setting tab stops, but
looking at the tab stop variable all seems to be set correctly,
every 8 chars, but however I do not get what I want..
Thanks,
tano






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

* Re: emacs and tab stops
       [not found] <mailman.18930.1221078010.18990.help-gnu-emacs@gnu.org>
@ 2008-09-10 21:49 ` Gareth Rees
  0 siblings, 0 replies; 5+ messages in thread
From: Gareth Rees @ 2008-09-10 21:49 UTC (permalink / raw)
  To: help-gnu-emacs

tano wrote:
> I used to run emacs always in fundamental mode, because I do not
> like automatic indentation, so I put a line in my .emacs file
> like (setq auto-mode-alist nil) to leave my tab stop every 8 chars.
> However with new versions of emacs seems that things are changed.
> Even if I run fundamental mode, tab stops does not follow the standard
> indentation every 8 chars, but goes in the first char after a space
> on the previous line, for example.

This is because the TAB key is now bound to the function 
`indent-for-tab-command'.  (When did this change? I don't see anything 
in NEWS about it.)

The command you are looking for is `tab-to-tab-stop', which you can run 
by typing M-i, or you can bind it to the TAB key with something like

(global-set-key (kbd "TAB") #'tab-to-tab-stop)

-- 
Gareth Rees


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

* Re: emacs and tab stops
  2008-09-10 20:14 emacs and tab stops tano
@ 2008-09-11  3:11 ` Eli Zaretskii
  2008-09-11  4:53 ` Kevin Rodgers
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-09-11  3:11 UTC (permalink / raw)
  To: help-gnu-emacs

> From: tano <gaetanoortisi@yahoo.it>
> Date: Wed, 10 Sep 2008 20:14:26 +0000 (UTC)
> 
> I used to run emacs always in fundamental mode, because I do not
> like automatic indentation, so I put a line in my .emacs file
> like (setq auto-mode-alist nil) to leave my tab stop every 8 chars.
> However with new versions of emacs seems that things are changed.
> Even if I run fundamental mode, tab stops does not follow the standard
> indentation every 8 chars, but goes in the first char after a space
> on the previous line, for example.
> How can I set up things so that it work as I want?

What does "C-h c TAB" display?

And what version of Emacs is that?




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

* Re: emacs and tab stops
  2008-09-10 20:14 emacs and tab stops tano
  2008-09-11  3:11 ` Eli Zaretskii
@ 2008-09-11  4:53 ` Kevin Rodgers
  2008-09-11 10:15   ` tano
  1 sibling, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2008-09-11  4:53 UTC (permalink / raw)
  To: help-gnu-emacs

tano wrote:
> Hello,
> I used to run emacs always in fundamental mode, because I do not
> like automatic indentation, so I put a line in my .emacs file
> like (setq auto-mode-alist nil) to leave my tab stop every 8 chars.
> However with new versions of emacs seems that things are changed.
> Even if I run fundamental mode, tab stops does not follow the standard
> indentation every 8 chars, but goes in the first char after a space
> on the previous line, for example.
> How can I set up things so that it work as I want?
> The previous answer talk me about setting tab stops, but
> looking at the tab stop variable all seems to be set correctly,
> every 8 chars, but however I do not get what I want..

1. In Fundamental mode: C-h k TAB

2. In *Help* buffer: follow the link for indent-line-function

3. C-h f indent-relative (I don't know why this isn't a link)

That suggests to me: (setq indent-line-function 'tab-to-tab-stop)

That by itself may disable automatic indentation, so you can
leave auto-mode-alist alone and get all the other benefits of
the various major modes.

-- 
Kevin Rodgers
Denver, Colorado, USA





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

* Re: emacs and tab stops
  2008-09-11  4:53 ` Kevin Rodgers
@ 2008-09-11 10:15   ` tano
  0 siblings, 0 replies; 5+ messages in thread
From: tano @ 2008-09-11 10:15 UTC (permalink / raw)
  To: help-gnu-emacs

I'm going to try it. Thanks!!







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

end of thread, other threads:[~2008-09-11 10:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-10 20:14 emacs and tab stops tano
2008-09-11  3:11 ` Eli Zaretskii
2008-09-11  4:53 ` Kevin Rodgers
2008-09-11 10:15   ` tano
     [not found] <mailman.18930.1221078010.18990.help-gnu-emacs@gnu.org>
2008-09-10 21:49 ` Gareth Rees

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.