equal
deleted
inserted
replaced
838 (knr-argdecl-intro . -))) |
838 (knr-argdecl-intro . -))) |
839 (c-echo-syntactic-information-p . t)) |
839 (c-echo-syntactic-information-p . t)) |
840 "My C Programming Style") |
840 "My C Programming Style") |
841 |
841 |
842 ;; (objc-mode . "my-mode") (c++-mode . "cc-mode") |
842 ;; (objc-mode . "my-mode") (c++-mode . "cc-mode") |
843 (add-hook 'c-initialization-hook (lambda () |
843 (add-hook 'c-mode-common-hook |
844 (c-add-style "my" my-c-style t))) |
844 (lambda () (c-add-style "my" my-c-style t))) |
845 (setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (other . "my"))) |
845 (setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (other . "my"))) |
846 |
846 |
847 ;; Customizations for all modes in CC Mode. |
847 ;; Customizations for all modes in CC Mode. |
848 ;; (defun my-c-mode-common-hook () |
848 ;; (defun my-c-mode-common-hook () |
849 ;; ;; add my personal style and set it for the current buffer |
849 ;; ;; add my personal style and set it for the current buffer |