help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding behavior in major modes (sql-mode, here)


From: Tim X
Subject: Re: Overriding behavior in major modes (sql-mode, here)
Date: Tue, 11 Sep 2007 18:25:53 +1000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]