# HG changeset patch # User Oleksandr Gavenko # Date 1240044155 -10800 # Node ID 5a3df58678d2179db5fc14914480355936ae7864 # Parent 0e82eedbaa8290d0d878ce7a22f71c31d7af154e Switch from c-initialization-hook to c-mode-common-hook because otherwise fill-paragraph not worked in text-mode. diff -r 0e82eedbaa82 -r 5a3df58678d2 .emacs-my --- a/.emacs-my Mon Mar 30 11:02:13 2009 +0300 +++ b/.emacs-my Sat Apr 18 11:42:35 2009 +0300 @@ -840,8 +840,8 @@ "My C Programming Style") ;; (objc-mode . "my-mode") (c++-mode . "cc-mode") -(add-hook 'c-initialization-hook (lambda () - (c-add-style "my" my-c-style t))) +(add-hook 'c-mode-common-hook + (lambda () (c-add-style "my" my-c-style t))) (setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (other . "my"))) ;; Customizations for all modes in CC Mode.