Fix: hs-minor-mode doesn't support fundamental-mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Mar 2015 13:09:44 +0200
changeset 1240 b086f9c8a4db
parent 1239 851b41ee5f7e
child 1241 4f22d9fe2e5b
Fix: hs-minor-mode doesn't support fundamental-mode.
.emacs-my
--- a/.emacs-my	Sat Feb 28 22:45:14 2015 +0200
+++ b/.emacs-my	Sun Mar 01 13:09:44 2015 +0200
@@ -2149,7 +2149,8 @@
 (mapc (lambda (hook) (add-hook hook (lambda () (setq fill-column my-fill-column)) ))
       (append my-devel-mode-hook-list my-text-mode-hook-list))
 
-(mapc #'hs-minor-mode '(c-mode c++-mode java-mode js-mode lisp-mode emacs-lisp-mode))
+(mapc (lambda (mode) (add-hook (my-mode2hook mode) #'hs-minor-mode))
+      '(c-mode c++-mode java-mode js-mode lisp-mode emacs-lisp-mode))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "diff, patch, ediff, emerge")