Last active
April 19, 2024 02:32
-
-
Save sprig/11499090 to your computer and use it in GitHub Desktop.
Advice for org-set-tags to disable helm completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun kk/run-with-no-helm (orig-func &rest args) | |
"Run a function without helm completion." | |
(if (boundp 'helm-mode) | |
(let ((orig-helm-mode helm-mode)) | |
(unwind-protect | |
(progn | |
(helm-mode 0) | |
(apply orig-func args) | |
) | |
(helm-mode (if orig-helm-mode 1 0)))) | |
(apply orig-func args) | |
)) | |
(advice-add 'org-icompleting-read :around 'kk/run-with-no-helm) | |
(advice-add 'org-completing-read :around 'kk/run-with-no-helm) | |
(advice-add 'org-completing-read-no-i :around 'kk/run-with-no-helm) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After spending more time on this, the advise option provided doesn't allow for normal completion when tab is pressed in the quick tag selection menu. I found the solution by here to to preferred.