From 71d3521541d08942d6088892ca6d9eac1f6b0ddc Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 22 May 2018 10:38:28 +0200 Subject: gnu: Add emacs-esh-autosuggest. * gnu/packages/emacs.scm (emacs-esh-autosuggest): New variable. Signed-off-by: Ricardo Wurmus --- gnu/packages/emacs.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index da68e00703..ca3c077399 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10494,3 +10494,32 @@ (define-public emacs-daemons my_thing reload} all the time. It offers a consistent UI over different init systems.") (license license:gpl3+))) + +(define-public emacs-esh-autosuggest + (package + (name "emacs-esh-autosuggest") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dieggsy/esh-autosuggest") + (commit version))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "116pdjgpjy9b0psm5kzwkwy7dq8vn0p6dy75dl1zsy2xrjf1iqdw")))) + (build-system emacs-build-system) + (propagated-inputs `(("emacs-company" ,emacs-company))) + (home-page "https://github.com/dieggsy/esh-autosuggest") + (synopsis "Fish-like autosuggestions in Eshell") + (description + "This package assumes you use something other than company for eshell +completion (e.g. @code{eshell-pcomplete}, @code{completion-at-point}, +@code{helm-esh-pcomplete}). @code{company-mode} is used solely as a mechanism +for history autosuggestions. + +Unless you're using @code{use-package}'s hook keyword, you can enable the +autosuggestions with: +@code{(add-hook 'eshell-mode-hook #'esh-autosuggest-mode)}") + (license license:gpl3+))) -- cgit v1.2.3