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

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

Re: Adding a hook to sql-mode?


From: Webb S.
Subject: Re: Adding a hook to sql-mode?
Date: Thu, 11 Dec 2008 19:47:45 -0800 (PST)
User-agent: G2/1.0

>
> (add-hook 'sql-mode-hook '(lambda () (setq indent-tabs-mode t tab-
> width 4)))

As a final followup:  this works great to add the hook, but it didn't
get the simple tab inserting behavior I wanted (still lined up the
cursor with the end of the word above it) so I did the following:

(add-hook 'sql-mode-hook '(lambda () (define-key sql-mode-map (kbd
"TAB") 'self-insert-command)))

And it works now

Thanks to everyone!


reply via email to

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