equal
deleted
inserted
replaced
1475 |
1475 |
1476 (setq c-echo-syntactic-information-p t) |
1476 (setq c-echo-syntactic-information-p t) |
1477 |
1477 |
1478 (defun my-c-mode-common-hook () |
1478 (defun my-c-mode-common-hook () |
1479 ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon. |
1479 ;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon. |
1480 (c-toggle-auto-newline -1) |
1480 (c-toggle-auto-newline 1) |
1481 ;; Delete all preceding whitespace by DEL. |
1481 ;; Delete all preceding whitespace by DEL. |
1482 (c-toggle-hungry-state -1) |
1482 (c-toggle-hungry-state -1) |
|
1483 ;; Auto indent after typing colon according to `c-hanging-colons-alist'. |
|
1484 (c-toggle-electric-state 1) |
1483 ) |
1485 ) |
1484 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) |
1486 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) |
1485 |
1487 |
1486 (defconst my-c-style |
1488 (defconst my-c-style |
1487 '((c-tab-always-indent . t) |
1489 '((c-tab-always-indent . t) |