[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: How do I remember not to exit from the remember
From: |
Marco Gidde |
Subject: |
[emacs-wiki-discuss] Re: How do I remember not to exit from the remember buffer ? |
Date: |
Wed, 24 May 2006 13:27:28 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Hello Tim,
"Tim T." <address@hidden> writes:
> Ok, fanciful title, but the problem is real..
>
> I have lost some notes over the past few days, because at the end of the day,
> I simply type ^X^C to exit from
> my current emacs session. This will prompt me to save all open files, but for
> some reason, the remember
> buffer I have open at that time is not included in the list...
Probably it has no associated file to save.
> How do I get emacs to remind me of the remember buffer ?
You might add a function to kill-emacs-query-functions.
> Documentation:
> Functions to call with no arguments to query about killing Emacs.
> If any of these functions returns nil, killing Emacs is cancelled.
> `save-buffers-kill-emacs' (C-x C-c) calls these functions,
> but `kill-emacs', the low level primitive, does not.
> See also `kill-emacs-hook'.
> Defined in `files'.
Your function should scan the buffer list and identify remeber
buffers. I think remember uses its own mode, so this should be quite
easy.
Regards,
Marco