From 3d91c9aff798f8e43b806a281483cabe7e8d06ea Mon Sep 17 00:00:00 2001 From: Quoc Huy Vu Date: Wed, 17 Nov 2021 15:03:00 +0100 Subject: [PATCH] fix(popup): show reftex-citation in popup --- modules/ui/popup/+hacks.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ui/popup/+hacks.el b/modules/ui/popup/+hacks.el index 3819355c4..7729dc9dd 100644 --- a/modules/ui/popup/+hacks.el +++ b/modules/ui/popup/+hacks.el @@ -246,6 +246,14 @@ the command buffer." (when (+popup-window-p win) (select-window win)))) + +;;;###package latex +(defadvice! +popup--use-popup-window-for-reftex-citation-a (fn &rest args) + :around #'reftex-do-citation + (letf! ((#'switch-to-buffer-other-window #'pop-to-buffer)) + (apply fn args))) + + ;;;###package org (after! org (defadvice! +popup--suppress-delete-other-windows-a (fn &rest args)