From ddd6b70591dfa51d41aa14bab295b8508a07152d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 24 Dec 2022 00:28:05 +0100 Subject: gnu: Add emacs-loccur. * gnu/packages/emacs-xyz.scm (emacs-loccur): New variable. --- gnu/packages/emacs-xyz.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 758cc84dff..8fec7b058f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Mark H Weaver ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Alex Kost ;;; Copyright © 2015 Federico Beffa -;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus ;;; Copyright © 2016, 2017, 2018, 2019 Chris Marusich ;;; Copyright © 2015, 2016, 2018, 2020 Christine Lemmer-Webber ;;; Copyright © 2016 Adriano Peluso @@ -10681,6 +10681,30 @@ (define-public emacs-loc-changes after buffer changes.") (license license:gpl3+))) +(define-public emacs-loccur + (let ((commit "01b7afa62589432a98171074abb8c5a1e089034a") + (revision "1")) + (package + (name "emacs-loccur") + (version (git-version "1.2.5" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fourier/loccur/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1b1x1xsiwqzsiss1jc6w990v1vfvbn5d5w67yzmx59s9ldjmdqq2")))) + (build-system emacs-build-system) + (home-page "https://github.com/fourier/loccur") + (synopsis "Perform an occur-like folding in current buffer") + (description + "Loccur is a tool to quickly navigate a file. It is a minor mode for +Emacs acting like occur but w/o creating a new window. It just hides all the +text excepting lines containing matches.") + (license license:gpl3+)))) + (define-public emacs-realgud (package (name "emacs-realgud") -- cgit v1.2.3