[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding a hook to sql-mode?
From: |
Chetan |
Subject: |
Re: Adding a hook to sql-mode? |
Date: |
Mon, 08 Dec 2008 23:04:32 -0800 |
User-agent: |
Emacs Gnus |
"Webb S." <webb.sprague@gmail.com> writes:
>> Looks like what you are looking for is indent with hard tabs with tab
>> width of 4. The following in the mode hook will do this.
>>
>> (setq indent-tabs-mode t
>> tab-width 4)
>>
>> You don't need to redefine TAB key then.
>
> Could you show me how to write the add-hook for that? I think that is
> where my problem is, not in the command. Yours is probably better,
> but mine works if I eval it once the file is open.
>
> Thx
If you are having difficulty with add-hook, setup file local
variables. M-x info will be your friend there.