On Sun, Sep 10, 2023 at 10:57:46AM +, Ihor Radchenko wrote:
> Then, what you can do is
>
> (defun my-org-capture-finalize (arg)
> "Like `org-capture-finalize', but kill Org buffer with double prefix arg."
> (interactive "P")
> (if (equal arg '(16))
> (save-excursion
> (org-captur
Eduardo Suarez writes:
> On Sun, Sep 10, 2023 at 08:19:25AM +, Ihor Radchenko wrote:
>> (defun my-org-capture-kill-buffer ()
>> (when (equal current-prefix-arg '(16))
>> (save-excursion
>> (org-capture-goto-last-stored)
>> (kill-buffer
>
> Thanks for the propos
On Sun, Sep 10, 2023 at 08:19:25AM +, Ihor Radchenko wrote:
> (defun my-org-capture-kill-buffer ()
> (when (equal current-prefix-arg '(16))
> (save-excursion
> (org-capture-goto-last-stored)
> (kill-buffer
Thanks for the proposed solution. I have tried it and it
Eduardo Suarez writes:
> I have tried something simple like
>
> (defun my-org-capture-kill-buffer ()
>(when (equal current-prefix-arg '(16))
> (kill-buffer)))
>
> as an after-finalize hook. It seems to recognize the 'current-prefix-arg'
> variable.
>
> However,
>
> 1. it looks to me tha
On Sat, Sep 09, 2023 at 09:18:27AM +, Ihor Radchenko wrote:
> For personal use-case, you can utilize
> `org-capture-after-finalize-hook', checking `current-prefix-arg' and
> killing the target org buffer according to the prefix argument passed.
> Then, for example, you can make C-u C-u C-c C-c
Eduardo Suarez-Santana writes:
>> Or do you mean that you sometimes want to kill the target org buffer and
>> sometimes not?
>
> Yes, I mean that I sometimes want to kill the target org buffer and sometimes
> not. I don't want to kill the target buffer as the default behavior of my
> capture temp
On Fri, Sep 08, 2023 at 12:38:07PM +, Ihor Radchenko wrote:
> Did you consider :kill-buffer property in `org-capture-templates'?
>
> :kill-bufferIf the target file was not yet visited by a buffer when
> capture was invoked, kill the buffer again after capture
>
Eduardo Suarez-Santana writes:
>> May you explain a bit more about the problem you are trying to solve?
>> Isn't the temporary capture buffer killed after capture already?
>> Or do you refer to the org buffer where the capture is recorded?
>
> Sorry about that. I refer to the org buffer where the
On Fri, Sep 08, 2023 at 12:10:23PM +, Ihor Radchenko wrote:
> Eduardo Suarez writes:
>
> > The function org-capture-finalize allows an argument to 'jump-to-capture'. I
> > think it may be a good idea to add a new argument to 'kill-buffer' after the
> > capture is finalized. This would be usef
Eduardo Suarez writes:
> The function org-capture-finalize allows an argument to 'jump-to-capture'. I
> think it may be a good idea to add a new argument to 'kill-buffer' after the
> capture is finalized. This would be useful to avoid having to kill the capture
> buffer manually. I assume that if
This is a feature request.
The function org-capture-finalize allows an argument to 'jump-to-capture'. I
think it may be a good idea to add a new argument to 'kill-buffer' after the
capture is finalized. This would be useful to avoid having to kill the capture
buffer manually. I assume that if ':ki
11 matches
Mail list logo