I am working in a git-repo
using zsh
shell.
On the background, git-auto-fetch plugin is running in order to automatically fetch all changes from all remotes while I am working in a git-initialized directory.
Due to this, if the buffer I am using in emacs
is touched or changed the file behind my back:
I am first asked:
emacs has changed since visited or saved. Save anyway?
#> YesThan asked again:
example_file.py changed on disk; really edit the buffer? (y, n, r or C-h)
#> y
Would it be possible to prevent:
emacs has changed since visited or saved. Save anyway?
example_file.py changed on disk; really edit the buffer? (y, n, r or C-h)
messages to show up by default and force to make their answer Yes
/y
?
my save function:
(defun my-save-all ()
(interactive)
(let ((message-log-max nil)
(inhibit-message t))
(save-some-buffers t)))
(defun save-all ()
(interactive)
(my-save-all)
(bk-kill-buffers "__init__.py")
(bk-kill-buffers "*helm"))
Changing confirmation style when deleting files in dired
into save file cases? @Drew(fset 'yes-or-no-p #'y-or-n-p)
.