[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Desktop and Wiki Mode
From: |
Kevin Rodgers |
Subject: |
Re: Emacs Desktop and Wiki Mode |
Date: |
Thu, 08 Jul 2004 09:05:29 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Chris Stiles wrote:
> I'm using emacs desktop to preserve sets of buffers, I am also using
> emacs-wiki mode.
>
> I don't always remember to close all the wiki related pages before
> exiting, and these pages get reloaded back in text-mode.
That seems like a bug -- shouldn't they be loaded in emacs-wiki mode?
> Is there a mechanism for hooking out the desktop code such that when
> it exits it kills a set of buffers based on certain criteria ?
,----[ C-h v desktop-modes-not-to-save RET ]
| desktop-modes-not-to-save's value is nil
|
| Documentation:
| List of major modes whose buffers should not be saved.
|
| You can customize this variable.
|
| Defined in `desktop'.
`----
From desktop.el:
;; To avoid saving excessive amounts of data you may also wish to add
;; something like the following
;;
;;
(add-hook 'kill-emacs-hook
;;
'(lambda ()
;;
(desktop-truncate search-ring 3)
;;
(desktop-truncate regexp-search-ring 3)))
;;
;; which will make sure that no more than three search items are saved. You
;; must place this line *after* the `(desktop-load-default)' line. See also
;; the variable `desktop-save-hook'.
So you could kill your emacs-wiki buffers in a desktop-save-hook function.
--
Kevin Rodgers
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Emacs Desktop and Wiki Mode,
Kevin Rodgers <=