emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-capture: Add a custom to control save target file or


From: Kaushal Modi
Subject: Re: [O] [PATCH] org-capture: Add a custom to control save target file or not.
Date: Wed, 26 Sep 2018 13:29:42 -0400

> On Sat, Apr 14, 2018 at 5:43 AM tumashu <address@hidden> wrote:
> >
> > Agree this idea,  If user want to save-buffer when capture finish, they can
> > add save-buffer to org-capture-after-finalize-hook  or just type C-x C-s

Also that suggestion to use org-capture-after-finalize-hook does not
work.. I am investigating to find the right way.

The reason is that the (current-buffer) when that hook is run is the
buffer from where the capture is initiated (which usually is not the
capture target buffer).

So running save-buffer in that hook simply saves a buffer unrelated to
the capture (which is not good).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]