legacy-dotfiles/emacs.d/20-c-mode.el
2011-05-16 10:55:35 +02:00

9 lines
380 B
EmacsLisp

(add-hook 'c-mode-hook
(lambda ()
(local-set-key [f8] 'c-toggle-header-source)
(local-set-key "\C-m"
(lambda ()
(interactive)
(c-indent-new-comment-line)
(c-indent-line-or-region)))
(local-set-key [C-return] 'newline)))