* Forcing tabs in sql mode
@ 2008-12-07 21:27 Webb S.
0 siblings, 0 replies; only message in thread
From: Webb S. @ 2008-12-07 21:27 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: webb.sprague
Hi all
If I open schema.sql I get funky indentation, where emacs changes my
tabs to a mix of spaces etc. I can fix this by running the following
in the eval (alt-:) buffer:
(define-key sql-mode-map (kbd "TAB") 'self-insert-command)
(setq-default default-tab-width 4)
(define-key sql-mode-map (kbd "RET") 'newline-and-indent)
How can I run this as a hook so it always works for sql mode? I tried
the following to no avail (sans comments):
;; following doesn't
work
;;(add-hook 'sql-mode-
hook
;; (lambda
()
;; (define-key sql-mode-map (kbd "TAB") 'self-insert-
command)))
Thx!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-07 21:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07 21:27 Forcing tabs in sql mode Webb S.
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.