aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-07-26 12:21:06 -0500
committerJesús <heckyel@hyperbola.info>2018-07-26 12:21:06 -0500
commit218d6aae764f0bfffc64c7f1ce9f223a0bbefd0a (patch)
tree11ad42519dfef2cc21a2c706cab434c605ed90f6
parent0035b50c835a884e4f7fb1be75397ac6275b0c15 (diff)
downloademacs-base-218d6aae764f0bfffc64c7f1ce9f223a0bbefd0a.tar.lz
emacs-base-218d6aae764f0bfffc64c7f1ce9f223a0bbefd0a.tar.xz
emacs-base-218d6aae764f0bfffc64c7f1ce9f223a0bbefd0a.zip
Added pairs mode
- disable pairs for default - enable show-paren-mode
-rw-r--r--lisp/init-editing-utils.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/init-editing-utils.el b/lisp/init-editing-utils.el
index 81a62c8..fad032e 100644
--- a/lisp/init-editing-utils.el
+++ b/lisp/init-editing-utils.el
@@ -1,6 +1,19 @@
;; Delete trailing whitespace before saving fil
(add-hook 'before-save-hook 'delete-trailing-whitespace)
+;; Automatic pairs open symbols (, {, [...
+;; Disable for default.
+;; Uncomment the next 4 lines if you want to enable the pairs-mode
+;;(when (fboundp 'electric-pair-mode)
+;; (electric-pair-mode))
+;;(when (eval-when-compile (version< "24.4" emacs-version))
+;; (electric-indent-mode 1))
+
+;;----------------------------------------------------------------------------
+;; Show matching parens
+;;----------------------------------------------------------------------------
+(show-paren-mode 1)
+
;;----------------------------------------------------------------------------
;; Some basic preferences
;;----------------------------------------------------------------------------