Merge pull request #4915 from HyunggyuJang/fix/org-agenda-restart
fix #4901: suppress strange behavior involving org agenda commands
This commit is contained in:
commit
a1ab5e8066
1 changed files with 3 additions and 5 deletions
|
@ -618,13 +618,11 @@ mutating hooks on exported output, like formatters."
|
|||
|
||||
(defun +org--restart-mode-h ()
|
||||
"Restart `org-mode', but only once."
|
||||
(quiet! (org-mode-restart))
|
||||
(delq! (current-buffer) org-agenda-new-buffers)
|
||||
(remove-hook 'doom-switch-buffer-hook #'+org--restart-mode-h
|
||||
'local)
|
||||
(delq! (current-buffer) org-agenda-new-buffers)
|
||||
(let ((file buffer-file-name)
|
||||
(inhibit-redisplay t))
|
||||
(kill-buffer)
|
||||
(find-file file)))
|
||||
(run-hooks 'find-file-hook))
|
||||
|
||||
(add-hook! 'org-agenda-finalize-hook
|
||||
(defun +org-exclude-agenda-buffers-from-workspace-h ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue