all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Eure <ian@digg.com>
To: Webb S. <webb.sprague@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Adding a hook to sql-mode?
Date: Tue, 9 Dec 2008 09:51:23 -0800	[thread overview]
Message-ID: <8EF5B2F7-D4A3-4A3E-9927-853E087827B5@digg.com> (raw)
In-Reply-To: <e21eb47c-ac9f-4830-96db-a905b83f0ceb@r10g2000prf.googlegroups.com>

On Dec 8, 2008, at 9:40 PM, Webb S. wrote:

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

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

  - Ian




  parent reply	other threads:[~2008-12-09 17:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09  0:58 Adding a hook to sql-mode? Webb S.
2008-12-09  2:14 ` Chetan
2008-12-09  5:40   ` Webb S.
2008-12-09  7:04     ` Chetan
2008-12-09 17:51     ` Ian Eure [this message]
     [not found]     ` <mailman.2343.1228845087.26697.help-gnu-emacs@gnu.org>
2008-12-12  3:47       ` Webb S.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8EF5B2F7-D4A3-4A3E-9927-853E087827B5@digg.com \
    --to=ian@digg.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=webb.sprague@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.