If set 'c-default-style' before 'c-add-style'
Undefined style: my error occured from 'c-get-style-variables'.
--- a/.emacs-my Sun Jul 25 17:13:55 2010 +0300
+++ b/.emacs-my Sun Jul 25 17:31:37 2010 +0300
@@ -1037,14 +1037,20 @@
(c-echo-syntactic-information-p . t))
"My C Programming Style")
-(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") (c++-mode . "my") (objc-mode . "my")
- (awk-mode . "awk")
- (other . "my")
- ))
+(add-hook
+ 'c-mode-common-hook
+ '(lambda ()
+ (c-add-style "my" my-c-style t)
+ ;; If set 'c-default-style' before 'c-add-style'
+ ;; "Undefined style: my" error occured from 'c-get-style-variables'.
+ (setq c-default-style
+ '(
+ (java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my")
+ (awk-mode . "awk")
+ (other . "my")
+ ))
+ ))
+
;; ----------------------------------------------------------------------
;; bat file, batch, loaded from 'generic-x.el'.