>From dfc5c83a2d192eb8352b374510ea96de86fac4eb Mon Sep 17 00:00:00 2001 From: Sohom Bhattacharjee Date: Mon, 9 Apr 2018 20:22:53 +0530 Subject: [PATCH 2/3] gnu: Add emacs-dumb-jump * gnu/packages/emacs.scm (emacs-dumb-jump): New variable. --- gnu/packages/emacs.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index e0056d862..69a5449e6 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7539,3 +7539,46 @@ and can be consulted and modified.") (description "@code{anzu} provides a minor mode that displays the current match and total match information in the mode-line in various search modes.") (license license:gpl3+))) + +(define-public emacs-dumb-jump + (package + (name "emacs-dumb-jump") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/jacktasia/dumb-jump/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07n0xjgpxjpf3vp9gxchkjpydyj0zm166930as0kwiwkhjlsirsf")))) + (build-system emacs-build-system) + (native-inputs + `(("ert-runner" ,ert-runner) + ("emacs-undercover" ,emacs-undercover) + ("emacs-el-mock" ,emacs-el-mock) + ("emacs-f" ,emacs-f) + ("emacs-s" ,emacs-s) + ("emacs-dash" ,emacs-dash) + ("emacs-popup" ,emacs-popup) + ("emacs-noflet" ,emacs-noflet))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'check + (lambda _ + (zero? (system* "ert-runner"))))))) + (home-page "https://github.com/jacktasia/dumb-jump") + (synopsis + "Jump to definition for multiple languages without configuration") + (description + "Dumb Jump is an Emacs \"jump to definition\" package with support for +multiple programming languages that favors \"just working\" over speed or +accuracy. This means minimal -- and ideally zero -- configuration with +absolutely no stored indexes (tags) or persistent background processes. Dumb +Jump performs best with The Silver Searcher @command{ag} or ripgrep @comand{rg} installed. +Dumb Jump requires at least GNU Emacs 24.3. +") + (license license:gpl3+))) -- 2.16.2