diff options
Diffstat (limited to 'jakob.org')
| -rw-r--r-- | jakob.org | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1670,3 +1670,20 @@ code, keybindings, symbol properties, and more. ("C-h C" . helpful-command) ("C-c C-d" . helpful-at-point))) #+END_SRC +* cc + +Generally, I adhere to the [[https://www.kernel.org/doc/html/v4.10/process/coding-style.html][Linux kernel coding style]]. + +#+BEGIN_SRC elisp +(use-package cc-mode + :hook + (c-mode . (lambda () (c-set-style "linux"))) +#+END_SRC + +Automatically insert the leading asterisk when continuing a multi-line comment. + +#+BEGIN_SRC elisp + :bind + (:map c-mode-map + ("RET" . c-indent-new-comment-line))) +#+END_SRC |