summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-17 11:12:43 +0100
committerGravatar Tom Willemse2013-11-17 11:12:43 +0100
commitf77d5e025439679af5630337bcd3576827da5a02 (patch)
tree84300180a8648d2ce072eaa83a1625f3e1480276 /.emacs.d/init.org
parentcf563ae04e9917e9c3212005318c10303d741340 (diff)
downloademacs-f77d5e025439679af5630337bcd3576827da5a02.tar.gz
emacs-f77d5e025439679af5630337bcd3576827da5a02.zip
Use smartparens for C
Diffstat (limited to '.emacs.d/init.org')
-rw-r--r--.emacs.d/init.org9
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index cba84e9..6a1de3f 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -448,3 +448,12 @@
(stante-after woman
(setq woman-fill-column 72))
#+END_SRC
+
+* Turn on smartparens for C coding
+
+ C is not as well-structured as Lisp, but it still has a lot of
+ braces, brackets and other things.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'c-mode-hook #'smartparens-strict-mode)
+ #+END_SRC