From: Carsten Dominik <dominik@science.uva.nl>
To: Rainer Stengele <rainer.stengele@diplan.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: remember buffer gets lost too easy
Date: Thu, 24 Jan 2008 09:33:33 +0100 [thread overview]
Message-ID: <C77D83FF-CB51-473A-8451-BBA48F1A3FE0@science.uva.nl> (raw)
In-Reply-To: <fn5ktd$jsf$1@ger.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1123 bytes --]
On Jan 22, 2008, at 9:49 PM, Rainer Stengele wrote:
> Is it possible to tie the remember buffer to a default file name or
> to yank it automatically before closing it?
What do you mean by "yank it"?
How are you loosing the buffer? By just killing it?
Anyway, this might do it, put this into .emacs *after* the remaining
remember setup.
(defadvice remember-finalize (before org-save-and-detach activate)
(when buffer-file-name
(save-buffer)
(setq buffer-file-name nil)))
(add-hook 'remember-mode-hook
(lambda ()
(org-set-local 'change-major-mode-with-file-name nil)
(write-file "~/path/to/remember_backup.org")
(org-set-local 'remember-buffer (buffer-name)))
'append)
I don't think I will add this to org.el because it seems to me
that you are, in some sense, using remember out of its realm by making
is a work buffer instead of a quick capture-or-note buffer. An
alternative work flow would be to use remember to set up an entry,
file it,
go to the location and then work with the entry in place.
Anyway, the above code should do the trick.
Hope this helps.
- Carsten
[-- Attachment #1.2: Type: text/html, Size: 2050 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2008-01-24 8:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 20:49 remember buffer gets lost too easy Rainer Stengele
2008-01-24 8:33 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C77D83FF-CB51-473A-8451-BBA48F1A3FE0@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=rainer.stengele@diplan.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.