Idiomdrottning’s homepage

emv — emacs aware CLI mv

I was frustrated calling “mv” on files in the shell, because I come up with a better name and/or location for it, only to forget that I was visiting the original in an emacs buffer and now it gets borked if I want to keep on editing that buffer and save it later.

Buuuut since I’m running emacs in --daemon mode or with start-server there is a way to call emacs functions from the command line, via emacsclient -e.

So I made a lil five line shell script that uses that with dired to move files in a way that emacs is aware of and updates it buffers. For a repo, git clone https://idiomdrottning.org/emv