# HG changeset patch # User Oleksandr Gavenko # Date 1280068297 -10800 # Node ID 188eba7735eba29279c554062177e3e9e19adb30 # Parent d1f5db3f7f06020f84773d160d4f2239eaefb7ae If set 'c-default-style' before 'c-add-style' Undefined style: my error occured from 'c-get-style-variables'. diff -r d1f5db3f7f06 -r 188eba7735eb .emacs-my --- 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'.