💾 Archived View for idiomdrottning.org › emv captured on 2024-08-25 at 00:51:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

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 three 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

three line shell script