emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 7f60353d70f61f28340c695e161f797c86e5a8a7
parent 48bc7a81c73a2d74b748e63adec2abae1d3a0c04
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 23 Jul 2020 12:32:51 +0300

Change C style

Diffstat:
Minit.org | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/init.org b/init.org @@ -771,6 +771,19 @@ is the use-package #+END_SRC ** C/C++ + +I am trying to get on with the [[https://www.kernel.org/doc/Documentation/process/coding-style.rst][Kernel Style guide]]. + +#+BEGIN_SRC emacs-lisp + (use-package cc-mode + :init + (defun my-c-hook() + "Set indentation size for C." + (setq indent-tabs-mode t) + (setq c-basic-offset tab-width)) + (add-hook 'c-mode-hook 'my-c-hook)) +#+END_SRC + *** Irony-mode I use irony-mode for syntax-checking and completion for C. It can also be used in conjunction with C++, but I personally don't need it. You can add a hook for