Fix helm-org-rifle to work with centaur-tabs
This commit is contained in:
parent
ed24782a4b
commit
c4e6104c64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user