unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Overriding behavior in major modes (sql-mode, here)
@ 2007-09-11  6:26 Unknown
  2007-09-11  8:25 ` Tim X
  0 siblings, 1 reply; 3+ messages in thread
From: Unknown @ 2007-09-11  6:26 UTC (permalink / raw)
  To: help-gnu-emacs

There is a slight annoyance in sql-mode in Emacs 22 that I would like to
work around.  Namely, I would like to use the <tab> key to indent by two
spaces.  So far, simply setting indent-tabs-mode to nil and tab-width to
2 does the job for me, but in sql mode, those settings seem to be ignored.

How do I go about forcing the <tab> key to behave the way that I would
like it to behave---consistently with all my other editing tasks?

	Thanks!
	Mike

-- 
Michael B. Trausch                                http://www.trausch.us/
Pidgin 2.1.1 and plugins for Ubuntu Feisty!
(And Thunderbird 2.0.0.6, too!)             http://www.trausch.us/pidgin

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

* Re: Overriding behavior in major modes (sql-mode, here)
  2007-09-11  6:26 Overriding behavior in major modes (sql-mode, here) Unknown
@ 2007-09-11  8:25 ` Tim X
  2007-09-11 15:08   ` Unknown
  0 siblings, 1 reply; 3+ messages in thread
From: Tim X @ 2007-09-11  8:25 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Trausch <"mike|s/\x40/\./g;s/|.*|/\x40/g;|trausch"@us> writes:

> There is a slight annoyance in sql-mode in Emacs 22 that I would like to
> work around.  Namely, I would like to use the <tab> key to indent by two
> spaces.  So far, simply setting indent-tabs-mode to nil and tab-width to
> 2 does the job for me, but in sql mode, those settings seem to be ignored.
>
> How do I go about forcing the <tab> key to behave the way that I would
> like it to behave---consistently with all my other editing tasks?
>

A very quick look makes me think that sql-mode is using the tab-to-tab-stop
function to do its indentation. I would try setting tab-stop-list and see
if that helps. M-x edit-tab-stops will let you edit the list
interactively. 

HTH

Tim

--
tcross (at) rapttech dot com dot au

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

* Re: Overriding behavior in major modes (sql-mode, here)
  2007-09-11  8:25 ` Tim X
@ 2007-09-11 15:08   ` Unknown
  0 siblings, 0 replies; 3+ messages in thread
From: Unknown @ 2007-09-11 15:08 UTC (permalink / raw)
  To: help-gnu-emacs

Tim X, on 09/11/2007 04:25 AM said:
> 
> A very quick look makes me think that sql-mode is using the
> tab-to-tab-stop function to do its indentation. I would try setting
> tab-stop-list and see if that helps. M-x edit-tab-stops will let you
> edit the list interactively.
> 

I tried that (actually I have a custom tab-stop list in my .emacs, but I
tried this too) and it didn't work.  It doesn't indent at /all/ on lines
that follow lines that do not start with whitespace, and on lines that
start with whitespace, it will indent on the next line to the column of
the first non-whitespace character on the previous line.  It doesn't
really make any sense to me, and while I *can* work like that, I don't
particularly enjoy it...

	-- Mike

-- 
Michael B. Trausch                                http://www.trausch.us/
Pidgin 2.1.1 and plugins for Ubuntu Feisty!
(And Thunderbird 2.0.0.6, too!)             http://www.trausch.us/pidgin

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11  6:26 Overriding behavior in major modes (sql-mode, here) Unknown
2007-09-11  8:25 ` Tim X
2007-09-11 15:08   ` Unknown

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