feat: Switch from ido/smex to Helm

This commit is contained in:
Vincent Ambo 2017-10-15 13:30:10 +02:00
parent bc12439cf7
commit 774aea8edd
3 changed files with 9 additions and 31 deletions

View file

@ -96,7 +96,7 @@ Including indent-buffer, which should not be called automatically on save."
(defun esk-sudo-edit (&optional arg)
(interactive "p")
(if (or arg (not buffer-file-name))
(find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: ")))
(find-file (concat "/sudo:root@localhost:" (read-file-name "File: ")))
(find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
;; Evaluate sexp and replace it with result