emacs-import-js
emacs-import-js copied to clipboard
Save on window switch writes fixed import result to other window
Hi, thanks for this awesome time saving tool!
I configured import-js-fix
to be run via after-save-hook
. I also have configured a hook that saves the buffer when I am switching to another buffer/window. Sometimes, when I switch to another window, the "fixed code" (of the buffer I was switching away from) is written to the newly selected window buffer.
I will see whether I find time to investigate this week. I suppose a save-excursion
and a buffer switch before updating fixed imports would suffice. Maybe you have a quick idea.
Peace & Love