Use variable my-devel-mode-hook-list so easy adds new devel modes in one
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 14 Mar 2010 20:20:26 +0200
changeset 337 17e3c74b7c22
parent 336 a252995f7d6b
child 338 ebf88f988c37
Use variable my-devel-mode-hook-list so easy adds new devel modes in one place.
.emacs-my
--- a/.emacs-my	Sun Mar 14 20:12:11 2010 +0200
+++ b/.emacs-my	Sun Mar 14 20:20:26 2010 +0200
@@ -796,12 +796,8 @@
 (setq-default comment-column 44)
 (setq-default comment-fill-column my-fill-column)
 
-(mapc (lambda (mode)
-        (add-hook mode
-                  (lambda ()
-                    (setq fill-column my-fill-column) )
-                  ))
-      '(c-mode-hook lisp-mode-hook))
+(mapc (lambda (hook) (add-hook hook (lambda () (setq fill-column my-fill-column)) ))
+      my-devel-mode-hook-list)
 
 ;; ----------------------------------------------------------------------
 ;; diff, patch.