Helm: Filter out dotted commands from helm-run-external-command
parent
6700ee2ea8
commit
9d7a73821f
|
@ -327,4 +327,13 @@ With prefix argument, UPDATE the databases with custom uptions thanks to the
|
|||
(file-name-extension candidate)))))
|
||||
1))
|
||||
|
||||
(defun ambrevar/helm-external-command-cleanup-dotted (&optional _ignore)
|
||||
"Remove dotted programs from `helm-run-external-command' list.
|
||||
Useful for Guix."
|
||||
(setq helm-external-commands-list
|
||||
(cl-delete-if (lambda (p) (string-prefix-p "." p))
|
||||
helm-external-commands-list)))
|
||||
(advice-add 'helm-external-commands-list-1
|
||||
:after #'ambrevar/helm-external-command-cleanup-dotted)
|
||||
|
||||
(provide 'init-helm)
|
||||
|
|
Loading…
Reference in New Issue