From 502f2669c8c1ed477886592ee905f2646daf973f Mon Sep 17 00:00:00 2001 From: oreodave Date: Thu, 24 Oct 2019 23:14:56 +0100 Subject: +c-style language item to set style automatically This needs to be set in variables preferably --- doom.d/config.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index 7012952..c29bd9d 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -217,6 +217,13 @@ Download JSON easily and be able to get responses quickly. ) #+END_SRC ** Languages +*** C-style +#+BEGIN_SRC emacs-lisp +(after! c-mode c++-mode + (add-hook! 'c-mode-hook '(lambda () + (setq c-basic-offset 2) + (c-set-style "linux")))) +#+END_SRC *** C# #+BEGIN_SRC emacs-lisp (after! csharp-mode -- cgit v1.2.3-13-gbd6f