.emacs-my
changeset 818 bbccd9875916
parent 808 54d6db4ec612
parent 809 9712975c4263
child 819 38b7c81853e8
child 823 c1c5a6b3255a
equal deleted inserted replaced
817:a4cbbc50ee76 818:bbccd9875916
  1825   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.
  1825   ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon.
  1826   (c-toggle-auto-newline 1)
  1826   (c-toggle-auto-newline 1)
  1827   ;; Delete all preceding whitespace by DEL.
  1827   ;; Delete all preceding whitespace by DEL.
  1828   (c-toggle-hungry-state -1)
  1828   (c-toggle-hungry-state -1)
  1829   ;; Auto indent after typing colon according to `c-hanging-colons-alist'.
  1829   ;; Auto indent after typing colon according to `c-hanging-colons-alist'.
  1830   (c-toggle-electric-state 1)
  1830   (c-toggle-electric-state -1)
  1831   )
  1831   )
  1832 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
  1832 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
  1833 
  1833 
  1834 (defconst my-c-style
  1834 (defconst my-c-style
  1835   '((c-tab-always-indent . t)
  1835   '((c-tab-always-indent . t)