mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Let's do this the right way :)
This commit is contained in:
parent
c383efc3a5
commit
ddb7b02d8d
2 changed files with 5 additions and 4 deletions
|
|
@ -86,7 +86,7 @@
|
|||
(side . right)
|
||||
(select . t)
|
||||
(slot . 7)
|
||||
(window-width . 80)
|
||||
(window-width . 85)
|
||||
(window-parameters
|
||||
. ((no-delete-other-windows . t)
|
||||
(dedicated . t)))))
|
||||
|
|
|
|||
|
|
@ -43,12 +43,13 @@
|
|||
:around
|
||||
#'my/org-capture-shouldnt-mess-windows)
|
||||
|
||||
(defun my/org-capture-finalize-shouldnt-mess-windows (fun &rest args)
|
||||
(defun my/org-capture-finalize-shouldnt-mess-windows (&rest args)
|
||||
(save-window-excursion
|
||||
(apply fun args)))
|
||||
(delete-window)
|
||||
(org-capture-put :return-to-wconf (current-window-configuration))))
|
||||
|
||||
(advice-add #'org-capture-finalize
|
||||
:around
|
||||
:before
|
||||
#'my/org-capture-finalize-shouldnt-mess-windows)
|
||||
|
||||
(defun my/org-todo-side-window-hack (fun &rest args)
|
||||
|
|
|
|||
Loading…
Reference in a new issue