.emacs-my
changeset 823 c1c5a6b3255a
parent 818 bbccd9875916
child 824 0e9a1d493295
equal deleted inserted replaced
822:836107c5c06f 823:c1c5a6b3255a
  1821 
  1821 
  1822 (setq c-echo-syntactic-information-p t)
  1822 (setq c-echo-syntactic-information-p t)
  1823 
  1823 
  1824 (defun my-c-mode-common-hook ()
  1824 (defun my-c-mode-common-hook ()
  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)