What is the simplest way to have Counsel versions of write-file
(C-x C-w
) and insert-file
(C-x i
)?
I would like these replacements to work similarly to counsel-find-file
(typically bound to C-x C-f
). I don't want to add actions (M-o ...
) to counsel-find-file
but to have a dedicated functions, as in default Emacs.
counsel-find-file
forwrite-file
andinsert-file
, as Counsel was not changing the behavior of these. But I now created aninit.el
file that just loads Ivy and Counsel andwrite-file
andinsert-file
are working as expected (i.e., with Counsel-like behavior). So, it seems my question is how to make Helm not take overwrite-file
andinsert-file
(I cannot just remove Helm, as I need some it's other functions). – scaramouche Feb 10 '20 at 18:18(add-to-list 'helm-completing-read-handlers-alist '(write-file . nil)) (add-to-list 'helm-completing-read-handlers-alist '(insert-file . nil))
after(helm-mode)
in my configuration. – scaramouche Feb 10 '20 at 18:30