aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2017-11-13 13:37:17 -0800
committerGravatar Tom Willemse2017-11-13 13:37:17 -0800
commit888627cd2ea8a9e2f613eb9667c424725678b007 (patch)
tree9b4f28be73af9e9e1da6ca76f46306be55413baf /emacs
parent3f54ab2ddd126b1d9d8c570eb5cccec2b649f58c (diff)
downloadnew-dotfiles-888627cd2ea8a9e2f613eb9667c424725678b007.tar.gz
new-dotfiles-888627cd2ea8a9e2f613eb9667c424725678b007.zip
Add C config
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org14
1 files changed, 14 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index dd19a88..c566f67 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1067,6 +1067,20 @@ Computing Environment".
(add-hook 'cider-repl-mode-hook 'paredit-mode)
#+END_SRC
+** C Mode
+
+ Enable electric pair mode.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'c-mode-hook 'electric-pair-local-mode)
+ #+END_SRC
+
+ Enable electric indent mode.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'c-mode-hook 'electric-indent-local-mode)
+ #+END_SRC
+
* Applications
- [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it