From dcc3d4030fcdc83f10220a061f4b7e306a99a439 Mon Sep 17 00:00:00 2001 From: "LaFreniere, Joseph" Date: Sun, 12 May 2019 10:46:40 -0500 Subject: gnu: Add emacs-evil-cleverparens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs-xyz.scm (emacs-evil-cleverparens): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 2ba9108f37..c7883e3507 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -46,6 +46,7 @@ ;;; Copyright © 2019 Brian Leung ;;; Copyright © 2019 mikadoZero ;;; Copyright © 2019 Gabriel Hondet +;;; Copyright © 2019 LaFreniere, Joseph ;;; ;;; This file is part of GNU Guix. ;;; @@ -15588,3 +15589,30 @@ programs and evaluate embedded queries. This mode is focused on the command @code{ediprolog-dwim} (Do What I Mean) which is supposed to, depending on the context, carry out the appropriate action.") (license license:gpl3+))) + +(define-public emacs-evil-cleverparens + (let ((commit "8c45879d49bfa6d4e414b6c1df700a4a51cbb869") + (revision "1")) + (package + (name "emacs-evil-cleverparens") + (version (git-version "2017-07-17" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/luxbock/evil-cleverparens.git") + (commit commit))) + (sha256 (base32 "0lhnybpnk4n2yhlcnj9zxn0vi5hpjfaqfhvyfy7ckzz74g8v7iyw")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-evil" ,emacs-evil) + ("emacs-paredit" ,emacs-paredit) + ("emacs-smartparens" ,emacs-smartparens))) + (home-page "https://github.com/luxbock/evil-cleverparens") + (synopsis "Emacs modal editing optimized for editing Lisp") + (description "@code{evil-cleverparens} remaps Evil keybindings to allow +modal editing with screwing up the structure of Lisp code. Alternatives for +verb commands which would are normally destructive (such as deletion) are +provided. Those alternative commands are and bound by default to their +corresponding Evil keys.") + (license license:expat)))) -- cgit v1.2.3