lang/org: respect org-agenda-sticky
And remove remappings of org-agenda-{q,Q}uit to org-agenda-exit
This commit is contained in:
parent
50cab52766
commit
ae5a18c364
1 changed files with 5 additions and 8 deletions
|
@ -547,10 +547,11 @@ eldoc string."
|
|||
"Prevent temporarily-opened agenda buffers from being associated with the
|
||||
current workspace (and clean them up)."
|
||||
(when (and org-agenda-new-buffers (bound-and-true-p persp-mode))
|
||||
(unless org-agenda-sticky
|
||||
(let (persp-autokill-buffer-on-remove)
|
||||
(persp-remove-buffer org-agenda-new-buffers
|
||||
(get-current-persp)
|
||||
nil))
|
||||
nil)))
|
||||
(dolist (buffer org-agenda-new-buffers)
|
||||
(with-current-buffer buffer
|
||||
;; HACK Org agenda opens temporary agenda incomplete org-mode
|
||||
|
@ -689,10 +690,6 @@ between the two."
|
|||
"r" #'org-refile)) ; to all `org-refile-targets'
|
||||
|
||||
(map! :after org-agenda
|
||||
:map org-agenda-mode-map
|
||||
;; Always clean up after itself
|
||||
[remap org-agenda-quit] #'org-agenda-exit
|
||||
[remap org-agenda-Quit] #'org-agenda-exit
|
||||
:localleader
|
||||
"d" #'org-agenda-deadline
|
||||
(:prefix ("c" . "clock")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue