Skip to content

Commit

Permalink
guix: Fix -guix-refresh call in eshell-post-command-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrevar committed Oct 12, 2018
1 parent c336374 commit d25e88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-system-packages-guix.el
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ COMMAND will be run in the Eshell buffer named by `helm-system-packages-shell-na
(if (eshell-interactive-process)
(message "A process is already running")
(push command arg-list)
(add-hook 'eshell-post-command-hook 'helm-system-packages-refresh nil t)
(add-hook 'eshell-post-command-hook 'helm-system-packages-guix-refresh nil t)
(add-hook 'eshell-post-command-hook
(lambda () (remove-hook 'eshell-post-command-hook 'helm-system-packages-refresh t))
(lambda () (remove-hook 'eshell-post-command-hook 'helm-system-packages-guix-refresh t))
t t)
(goto-char (point-max))
(insert (mapconcat 'identity arg-list " "))
Expand Down

0 comments on commit d25e88c

Please sign in to comment.