.emacs-my
changeset 809 9712975c4263
parent 800 c458012963c2
child 818 bbccd9875916
equal deleted inserted replaced
800:c458012963c2 809:9712975c4263
  1789   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.
  1789   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.
  1790   (c-toggle-auto-newline 1)
  1790   (c-toggle-auto-newline 1)
  1791   ;; Delete all preceding whitespace by DEL.
  1791   ;; Delete all preceding whitespace by DEL.
  1792   (c-toggle-hungry-state -1)
  1792   (c-toggle-hungry-state -1)
  1793   ;; Auto indent after typing colon according to `c-hanging-colons-alist'.
  1793   ;; Auto indent after typing colon according to `c-hanging-colons-alist'.
  1794   (c-toggle-electric-state 1)
  1794   (c-toggle-electric-state -1)
  1795   )
  1795   )
  1796 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
  1796 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
  1797 
  1797 
  1798 (defconst my-c-style
  1798 (defconst my-c-style
  1799   '((c-tab-always-indent . t)
  1799   '((c-tab-always-indent . t)