From 9f8542fe75e5d4c166316983093e26e37bdd332d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Dec 2019 22:40:30 +0000 Subject: chore(emacs.d): Remove smartparens I actually find a lot of its behaviour very annoying, rather than smart. Good old electric-pair-mode usually does what I want. --- tools/emacs/config/init.el | 1 - tools/emacs/config/modes.el | 3 +-- tools/emacs/default.nix | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el index 19ae1e056be3..253cea7e7cee 100644 --- a/tools/emacs/config/init.el +++ b/tools/emacs/config/init.el @@ -54,7 +54,6 @@ (use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode)) (use-package rainbow-mode) (use-package s) -(use-package smartparens :config (smartparens-global-mode)) (use-package string-edit) (use-package telephone-line) ;; configuration happens outside of use-package (use-package undo-tree :config (global-undo-tree-mode)) diff --git a/tools/emacs/config/modes.el b/tools/emacs/config/modes.el index 19ed2a684349..ceef84b9626d 100644 --- a/tools/emacs/config/modes.el +++ b/tools/emacs/config/modes.el @@ -19,8 +19,7 @@ (show-paren-mode 1) ;; Always auto-close parantheses and other pairs -;; (replaced by smartparens) -;; (electric-pair-mode) +(electric-pair-mode) ;; Keep track of recent files (recentf-mode) diff --git a/tools/emacs/default.nix b/tools/emacs/default.nix index 7c494f4bc3a1..d061bbfaabec 100644 --- a/tools/emacs/default.nix +++ b/tools/emacs/default.nix @@ -65,7 +65,6 @@ let rainbow-delimiters restclient sly - smartparens string-edit swiper telephone-line -- cgit 1.4.1