changeset 198:ccab2fe3a256

Merge
author Augie Fackler <durin42@gmail.com>
date Tue, 06 Apr 2010 15:13:50 -0500
parents 88ba320ffe7d (current diff) 5dbff8b65be7 (diff)
children cf3ed4aa3e52
files .elisp/settings/40.modes.el
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -17,9 +17,13 @@ point."
 (add-hook 'c-mode-hook          'af-tab-fix)
 (add-hook 'sh-mode-hook         'af-tab-fix)
 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
-(add-hook 'rst-mode-hook '(lambda ()
-                            (make-variable-buffer-local 'af-cleanup-whitespace)
-                            (set-variable 'af-cleanup-whitespace nil)))
+(defun af-no-clean-whitespace ()
+  (make-variable-buffer-local 'af-cleanup-whitespace)
+  (set-variable 'af-cleanup-whitespace nil))
+(add-hook 'rst-mode-hook 'af-no-clean-whitespace)
+(add-hook 'makefile-mode-hook '(lambda ()
+                                 (af-no-clean-whitespace)
+                                 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)))
 
 (autoload 'js2-mode "js2" nil t)
 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
--- a/.elisp/settings/90.keybindings.el
+++ b/.elisp/settings/90.keybindings.el
@@ -1,6 +1,7 @@
 ;; Key Bindings
 ; M-backspace kills the current buffer
 (global-set-key [(meta backspace)] 'kill-this-buffer)
+(global-set-key "\M-\d" 'kill-this-buffer)
 ; Save early and often, with only one keystroke
 (global-set-key [(meta s)] 'save-buffer)
 ; Typing tab is for lesser editors, make hitting return do that