From 888627cd2ea8a9e2f613eb9667c424725678b007 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 13 Nov 2017 13:37:17 -0800 Subject: Add C config --- emacs/.emacs.d/init.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'emacs') 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 -- cgit v1.2.3-54-g00ecf