all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Saving org-capture buffer while writing it
@ 2017-02-20 14:05 Narendra Joshi
  2017-02-20 14:28 ` Stig Brautaset
  2017-02-20 21:23 ` Myles English
  0 siblings, 2 replies; 9+ messages in thread
From: Narendra Joshi @ 2017-02-20 14:05 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

Sometimes when I am taking notes, I end up spending a lot of time in a
capture buffer. If I happen to switch to something else, I end up
loosing the capture buffer. I probably just kill the buffer
accidentally, or do `C-c C-k'.

Is there a way I can take backups of the buffer to a file?

Thanks,
Narendra Joshi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 14:05 Saving org-capture buffer while writing it Narendra Joshi
@ 2017-02-20 14:28 ` Stig Brautaset
  2017-02-20 19:31   ` Narendra Joshi
  2017-02-20 21:23 ` Myles English
  1 sibling, 1 reply; 9+ messages in thread
From: Stig Brautaset @ 2017-02-20 14:28 UTC (permalink / raw)
  To: Narendra Joshi; +Cc: emacs-orgmode


Narendra Joshi <narendraj9@gmail.com> writes:

> Hi,
>
> Sometimes when I am taking notes, I end up spending a lot of time in a
> capture buffer. If I happen to switch to something else, I end up
> loosing the capture buffer. I probably just kill the buffer
> accidentally, or do `C-c C-k'.
>
> Is there a way I can take backups of the buffer to a file?

Dunno about backups, but I experience this problem too. (Another
annoyance I have is accidentally hitting `C-c C-c' to tick a check box
and having my in-progress work being moved.) It can help to use the
`:immediate-finish' and `:jump-to-captured' settings like so:

#+BEGIN_SRC emacs-lisp
  ("n" "Note" entry (file "Notes.org")
   (file "tpl-note.org")
   :empty-lines 1
   :immediate-finish t
   :jump-to-captured t)
#+END_SRC

Stig

--
; GNU Emacs 25.1.1, Org mode version 9.0.5

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
       [not found] <25659941e5554877be8b42b61853d626@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-02-20 16:33 ` Eric S Fraga
  0 siblings, 0 replies; 9+ messages in thread
From: Eric S Fraga @ 2017-02-20 16:33 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

On Monday, 20 Feb 2017 at 14:05, Narendra Joshi wrote:
> Hi,
>
> Sometimes when I am taking notes, I end up spending a lot of time in a
> capture buffer. If I happen to switch to something else, I end up
> loosing the capture buffer. I probably just kill the buffer
> accidentally, or do `C-c C-k'.
>
> Is there a way I can take backups of the buffer to a file?

I believe that the capture window is simply a view into the file where
the note will be placed so it should actually be there already unless
you cancel.  It is not a separate buffer.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 14:28 ` Stig Brautaset
@ 2017-02-20 19:31   ` Narendra Joshi
  2017-02-20 23:01     ` Stig Brautaset
  0 siblings, 1 reply; 9+ messages in thread
From: Narendra Joshi @ 2017-02-20 19:31 UTC (permalink / raw)
  To: Stig Brautaset; +Cc: emacs-orgmode

Stig Brautaset <stig@brautaset.org> writes:

> Narendra Joshi <narendraj9@gmail.com> writes:
>
>> Hi,
>>
>> Sometimes when I am taking notes, I end up spending a lot of time in a
>> capture buffer. If I happen to switch to something else, I end up
>> loosing the capture buffer. I probably just kill the buffer
>> accidentally, or do `C-c C-k'.
>>
>> Is there a way I can take backups of the buffer to a file?
>
> Dunno about backups, but I experience this problem too. (Another
> annoyance I have is accidentally hitting `C-c C-c' to tick a check box
> and having my in-progress work being moved.) It can help to use the
> `:immediate-finish' and `:jump-to-captured' settings like so:
>
> #+BEGIN_SRC emacs-lisp
>   ("n" "Note" entry (file "Notes.org")
>    (file "tpl-note.org")
>    :empty-lines 1
>    :immediate-finish t
>    :jump-to-captured t)
> #+END_SRC
>
> Stig
>
> --
> ; GNU Emacs 25.1.1, Org mode version 9.0.5

Do you write your email with Org-mode? I have seen a lot of people
writing the source code blocks and surprising they are syntax
highlighted in Gnus. This makes me wonder if `org-mode' has support for
writing emails too.

Thanks for the info about new keywords. :)

-- 
Narendra Joshi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 14:05 Saving org-capture buffer while writing it Narendra Joshi
  2017-02-20 14:28 ` Stig Brautaset
@ 2017-02-20 21:23 ` Myles English
  2017-02-20 22:02   ` Narendra Joshi
  2017-02-21 11:59   ` Ian Barton
  1 sibling, 2 replies; 9+ messages in thread
From: Myles English @ 2017-02-20 21:23 UTC (permalink / raw)
  To: Narendra Joshi; +Cc: emacs-orgmode

Hello,

on [2017-02-20] at 14:05 Narendra Joshi writes:

> Hi,
>
> Sometimes when I am taking notes, I end up spending a lot of time in a
> capture buffer. If I happen to switch to something else, I end up
> loosing the capture buffer. I probably just kill the buffer
> accidentally, or do `C-c C-k'.
>
> Is there a way I can take backups of the buffer to a file?

I usually just save it (C-c s) and it is saved to where it would be
saved anyway when I eventually do C-c C-c.

Myles

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 21:23 ` Myles English
@ 2017-02-20 22:02   ` Narendra Joshi
  2017-02-20 22:05     ` Myles English
  2017-02-21 11:59   ` Ian Barton
  1 sibling, 1 reply; 9+ messages in thread
From: Narendra Joshi @ 2017-02-20 22:02 UTC (permalink / raw)
  To: Myles English; +Cc: emacs-orgmode

Myles English <mylesenglish@gmail.com> writes:

> Hello,
>
> on [2017-02-20] at 14:05 Narendra Joshi writes:
>
>> Hi,
>>
>> Sometimes when I am taking notes, I end up spending a lot of time in a
>> capture buffer. If I happen to switch to something else, I end up
>> loosing the capture buffer. I probably just kill the buffer
>> accidentally, or do `C-c C-k'.
>>
>> Is there a way I can take backups of the buffer to a file?

> I usually just save it (C-c s) and it is saved to where it would be
> saved anyway when I eventually do C-c C-c.
I just noticed that saving with `C-x C-s` does save the buffer. Why do
you have a personal binding for saving the buffer? Is it doing something
else?

-- 
Narendra Joshi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 22:02   ` Narendra Joshi
@ 2017-02-20 22:05     ` Myles English
  0 siblings, 0 replies; 9+ messages in thread
From: Myles English @ 2017-02-20 22:05 UTC (permalink / raw)
  To: Narendra Joshi; +Cc: emacs-orgmode


on [2017-02-20] at 22:02 Narendra Joshi writes:

> Myles English <mylesenglish@gmail.com> writes:
>
>> Hello,
>>
>> on [2017-02-20] at 14:05 Narendra Joshi writes:
>>
>>> Hi,
>>>
>>> Sometimes when I am taking notes, I end up spending a lot of time in a
>>> capture buffer. If I happen to switch to something else, I end up
>>> loosing the capture buffer. I probably just kill the buffer
>>> accidentally, or do `C-c C-k'.
>>>
>>> Is there a way I can take backups of the buffer to a file?
>
>> I usually just save it (C-c s) and it is saved to where it would be
>> saved anyway when I eventually do C-c C-c.
> I just noticed that saving with `C-x C-s` does save the buffer. Why do
> you have a personal binding for saving the buffer? Is it doing something
> else?

I meant C-x C-s.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 19:31   ` Narendra Joshi
@ 2017-02-20 23:01     ` Stig Brautaset
  0 siblings, 0 replies; 9+ messages in thread
From: Stig Brautaset @ 2017-02-20 23:01 UTC (permalink / raw)
  To: Narendra Joshi; +Cc: emacs-orgmode


Narendra Joshi <narendraj9@gmail.com> writes:
>> Dunno about backups, but I experience this problem too. (Another
>> annoyance I have is accidentally hitting `C-c C-c' to tick a check box
>> and having my in-progress work being moved.) It can help to use the
>> `:immediate-finish' and `:jump-to-captured' settings like so:
>>
>> #+BEGIN_SRC emacs-lisp
>>   ("n" "Note" entry (file "Notes.org")
>>    (file "tpl-note.org")
>>    :empty-lines 1
>>    :immediate-finish t
>>    :jump-to-captured t)
>> #+END_SRC
>
> Do you write your email with Org-mode?

I do! (Sometimes.) I have bound `C-c x' in message-mode to swap to
`org-mode', and `C-c x' in org mode to swap to message-mode. Mostly I do
it for the outlining, but using babel to properly indent source code
snippets is very nice too.

> I have seen a lot of people writing the source code blocks and
> surprising they are syntax highlighted in Gnus. This makes me wonder
> if `org-mode' has support for writing emails too.

It does! Obviously Org markup is already perfectly readable as plain
text emails. And if you want to send HTML emails, check out
`org-mime-htmlize' which is part of `org-mime' from org-plus-contrib
(see: http://orgmode.org/elpa.html)

Stig

--
; GNU Emacs 25.1.1, Org mode version 9.0.5

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Saving org-capture buffer while writing it
  2017-02-20 21:23 ` Myles English
  2017-02-20 22:02   ` Narendra Joshi
@ 2017-02-21 11:59   ` Ian Barton
  1 sibling, 0 replies; 9+ messages in thread
From: Ian Barton @ 2017-02-21 11:59 UTC (permalink / raw)
  To: emacs-orgmode


> > Hi,
> >
> > Sometimes when I am taking notes, I end up spending a lot of time in a
> > capture buffer. If I happen to switch to something else, I end up
> > loosing the capture buffer. I probably just kill the buffer
> > accidentally, or do `C-c C-k'.
> >
> > Is there a way I can take backups of the buffer to a file?
>
> I usually just save it (C-c s) and it is saved to where it would be
> saved anyway when I eventually do C-c C-c.
>
> Myles
>
If I am going to leave a capture buffer open for a long time I just do
C-u C-c C-c, which saves the capture buffer and then switches to the
buffer where it's saved where you can continue entering text.

Ian.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-02-21 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-20 14:05 Saving org-capture buffer while writing it Narendra Joshi
2017-02-20 14:28 ` Stig Brautaset
2017-02-20 19:31   ` Narendra Joshi
2017-02-20 23:01     ` Stig Brautaset
2017-02-20 21:23 ` Myles English
2017-02-20 22:02   ` Narendra Joshi
2017-02-20 22:05     ` Myles English
2017-02-21 11:59   ` Ian Barton
     [not found] <25659941e5554877be8b42b61853d626@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-02-20 16:33 ` Eric S Fraga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.