.emacs-my
changeset 424 188eba7735eb
parent 423 d1f5db3f7f06
child 425 b835c68d20a8
equal deleted inserted replaced
423:d1f5db3f7f06 424:188eba7735eb
  1035         (substatement-open . 0)
  1035         (substatement-open . 0)
  1036         ))
  1036         ))
  1037     (c-echo-syntactic-information-p . t))
  1037     (c-echo-syntactic-information-p . t))
  1038   "My C Programming Style")
  1038   "My C Programming Style")
  1039 
  1039 
  1040 (add-hook 'c-mode-common-hook
  1040 (add-hook
  1041           (lambda () (c-add-style "my" my-c-style t)))
  1041  'c-mode-common-hook
  1042 (setq c-default-style
  1042  '(lambda ()
  1043       '(
  1043     (c-add-style "my" my-c-style t)
  1044         (java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my")
  1044     ;; If set 'c-default-style' before 'c-add-style'
  1045         (awk-mode . "awk")
  1045     ;; "Undefined style: my" error occured from 'c-get-style-variables'.
  1046         (other . "my")
  1046     (setq c-default-style
  1047         ))
  1047           '(
       
  1048             (java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my")
       
  1049             (awk-mode . "awk")
       
  1050             (other . "my")
       
  1051             ))
       
  1052     ))
       
  1053 
  1048 
  1054 
  1049 ;; ----------------------------------------------------------------------
  1055 ;; ----------------------------------------------------------------------
  1050 ;; bat file, batch, loaded from 'generic-x.el'.
  1056 ;; bat file, batch, loaded from 'generic-x.el'.
  1051 
  1057 
  1052 ;; ----------------------------------------------------------------------
  1058 ;; ----------------------------------------------------------------------