I have written a small function in the MX that hide I am in the GIT repository of that file, and I have added this function to How do Emacs think, the file has been changed as the result of the above git commands? Edit: Thanks jvasak
git hiding the git
after-save-hook
, so this file Runs every time to save. The problem is that when I save the file, the git commands and timestamps running above change, so Imac thinks that the file has been modified outside of the MX. Naturally, when I try to edit the file again (without closing and reopening), then MX asks if I really want to edit buffer which is quite upset.
I do not know to make sure that it will work, but you can leave back-buffer
after your after-left-hook < / Code>, which should reload the file from disk. Driven with the
Combined-Un-query
move, it can provide the desired behavior.
Comments
Post a Comment