Move wgrep popup config to core-popups
This commit is contained in:
parent
80659f9b00
commit
54383a8dde
2 changed files with 7 additions and 3 deletions
|
@ -231,9 +231,7 @@ sake."
|
||||||
(def-package! wgrep
|
(def-package! wgrep
|
||||||
:commands (wgrep-setup wgrep-change-to-wgrep-mode)
|
:commands (wgrep-setup wgrep-change-to-wgrep-mode)
|
||||||
:config
|
:config
|
||||||
(setq wgrep-auto-save-buffer t)
|
(setq wgrep-auto-save-buffer t))
|
||||||
(advice-add #'wgrep-abort-changes :after #'doom/popup-close)
|
|
||||||
(advice-add #'wgrep-finish-edit :after #'doom/popup-close))
|
|
||||||
|
|
||||||
(provide 'core-editor)
|
(provide 'core-editor)
|
||||||
;;; core-editor.el ends here
|
;;; core-editor.el ends here
|
||||||
|
|
|
@ -468,6 +468,12 @@ that `doom*popup-save' won't break it."
|
||||||
(setq twittering-pop-to-buffer-function #'pop-to-buffer))
|
(setq twittering-pop-to-buffer-function #'pop-to-buffer))
|
||||||
|
|
||||||
|
|
||||||
|
(after! wgrep
|
||||||
|
;; close the popup after you're done with a wgrep buffer
|
||||||
|
(advice-add #'wgrep-abort-changes :after #'doom/popup-close)
|
||||||
|
(advice-add #'wgrep-finish-edit :after #'doom/popup-close))
|
||||||
|
|
||||||
|
|
||||||
(after! xref
|
(after! xref
|
||||||
(defun doom*xref-follow-and-close (orig-fn &rest args)
|
(defun doom*xref-follow-and-close (orig-fn &rest args)
|
||||||
"Jump to the xref on the current line, select its window and close the popup
|
"Jump to the xref on the current line, select its window and close the popup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue