+c-style language item to set style automatically

This needs to be set in variables preferably
This commit is contained in:
oreodave
2019-10-24 23:14:56 +01:00
parent e0bd72a356
commit 502f2669c8

View File

@@ -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