comparison .elisp/settings/40.modes.el @ 79:26f1ccac509c

Bind g to recompile in compilation-mode buffers.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 11:18:03 -0500
parents 45d7441d0cf2
children 89f6d05cd7d5
comparison
equal deleted inserted replaced
78:5e1439dd9ee1 79:26f1ccac509c
35 (set-variable 'python-indent 2)) 35 (set-variable 'python-indent 2))
36 (af-tab-fix) 36 (af-tab-fix)
37 ) 37 )
38 (add-hook 'python-mode-hook 'af-python-mode-hook) 38 (add-hook 'python-mode-hook 'af-python-mode-hook)
39 39
40 (add-hook 'compilation-mode-hook '(lambda () (local-set-key "g" 'recompile)))
41
40 42
41 ; text-mode tries to use M-s for something other than my save shortcut. 43 ; text-mode tries to use M-s for something other than my save shortcut.
42 ; That's evil. Stop it from doing that. 44 ; That's evil. Stop it from doing that.
43 (add-hook 'text-mode-hook '(lambda () 45 (add-hook 'text-mode-hook '(lambda ()
44 (define-key text-mode-map "\M-s" 46 (define-key text-mode-map "\M-s"