Jeff Mincy <jmincy(a)muniversal.com> writes:
In my .emacs file I have initializations to smash various modes
in various ways. For example:
(setq sql-mode-font-lock-keywords sql-mode-oracle-font-lock-keywords)
(define-key tcl-mode-map [(meta backspace)] 'backward-kill-word)
(define-key makefile-mode-map "$" 'self-insert-command)
(define-key makefile-mode-map "\^x\$" 'makefile-insert-macro-ref)
Is there some reason you don't put these on the appropriate mode-hook?
(defun my-tcl-mode-hook ()
"A hook run in tcl-mode buffers"
(define-key tcl-mode-map [(meta backspace)] 'backward-kill-word))
(add-hook 'tcl-mode-hook 'my-tcl-mode-hook)
-Mark