.emacs-my
changeset 128 5a3df58678d2
parent 127 0e82eedbaa82
child 129 23d028bad418
equal deleted inserted replaced
127:0e82eedbaa82 128:5a3df58678d2
   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