From c4e6104c6417015422390feea4618c675aeb3501 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 10 Jan 2021 10:10:44 -0500 Subject: [PATCH] Fix helm-org-rifle to work with centaur-tabs --- emacs/.emacs.d/init.org | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index cbe98ba..62e6ff8 100755 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1260,7 +1260,16 @@ Quickly find stuff in Org files: "F" #'helm-org-rifle-occur-files "O" #'helm-org-rifle-occur-org-directory) (leader-def-key "or" helm-org-rifle-commands-map) - (jdormit/define-prefix "or" "org-rifle")) + (jdormit/define-prefix "or" "org-rifle") + :config + (defun around-helm-org-rifle (oldfn &rest args) + (if (and (boundp 'centaur-tabs-mode) centaur-tabs-mode) + (progn + (centaur-tabs-mode -1) + (apply oldfn args) + (centaur-tabs-mode 1)) + (apply oldfn args))) + (advice-add 'helm-org-rifle :around #'around-helm-org-rifle)) #+END_SRC ** Org Noter