mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
recompile, don't pop up again
This commit is contained in:
parent
6fae2c7bc9
commit
f39ecb4f41
1 changed files with 8 additions and 0 deletions
|
|
@ -72,5 +72,13 @@ commands of Compilation major mode are available. See
|
|||
:after
|
||||
#'my/compilation-start-should-goto-end-of-buffer)
|
||||
|
||||
(defun my/recompile-save-windows (fun &rest args)
|
||||
(save-window-excursion
|
||||
(apply fun args)))
|
||||
|
||||
(advice-add #'recompile
|
||||
:around
|
||||
#'my/recompile-save-windows)
|
||||
|
||||
(provide 'my-comp-minor-mode)
|
||||
;;; my-comp-minor-mode.el ends here
|
||||
|
|
|
|||
Loading…
Reference in a new issue