aboutsummaryrefslogtreecommitdiff
path: root/doom.d
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-10-24 23:14:56 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-10-24 23:14:56 +0100
commit502f2669c8c1ed477886592ee905f2646daf973f (patch)
tree3ea5cf21026eda5fd5ae75f642d8d4115a232ea1 /doom.d
parente0bd72a356a66b97d182415457f5bbb2d765d063 (diff)
downloaddotfiles-502f2669c8c1ed477886592ee905f2646daf973f.tar.gz
dotfiles-502f2669c8c1ed477886592ee905f2646daf973f.tar.bz2
dotfiles-502f2669c8c1ed477886592ee905f2646daf973f.zip
+c-style language item to set style automatically
This needs to be set in variables preferably
Diffstat (limited to 'doom.d')
-rw-r--r--doom.d/config.org7
1 files changed, 7 insertions, 0 deletions
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