aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/emacs.scm
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2018-05-22 10:38:28 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-05-22 12:26:01 +0200
commit71d3521541d08942d6088892ca6d9eac1f6b0ddc (patch)
treea0ad04fd3438df168ea4af51467efee71493ff7a /gnu/packages/emacs.scm
parent35d438439c979ee629804ebf54a64d574d136530 (diff)
downloadguix-71d3521541d08942d6088892ca6d9eac1f6b0ddc.tar
guix-71d3521541d08942d6088892ca6d9eac1f6b0ddc.tar.gz
gnu: Add emacs-esh-autosuggest.
* gnu/packages/emacs.scm (emacs-esh-autosuggest): New variable. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
Diffstat (limited to 'gnu/packages/emacs.scm')
-rw-r--r--gnu/packages/emacs.scm29
1 files changed, 29 insertions, 0 deletions
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 @@ daemons (services) for those getting tired of typing out @code{sudo service
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+)))