>From: Heather Buch <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: desktop problems
>Date: Thu, 14 Feb 2002 10:20:50 -0500
>
>Hi,
>
>I'm trying to use desktop.el. It is in my share/emacs/21.1/lisp dir.
>
>I can't M-x to any of it's functions without editing my .emacs file
>to load it first, right?
>
>So I edit my .emacs.
>
>When I add these lines at the bottom of my .emacs file,
>
>(desktop-load-default)
>(desktop-read)
>

You need a (load "desktop") before these lines.

My .emacs has the following entries:


;;=====================================================================
; Desktop works to save your current emacs session -- your buffers,
; positions within them, etc, and to reload your old emacs session
; when you start emacs up again.  The first time you want to do this,
; you also need to do "M-x desktop-save".
;
; The reason that I have this down here towards the end of the file is
; that all the nice font-locking stuff is otherwise ignored -- you'd
; need to do "M-x font-lock-mode" by hand, for each buffer, every
; time.  That's no good.
;
; Note: I think XEmacs does this automatically. Emacs has this
; package, but the following lines are necessary to activate it.

;; load, activate and restore desktop
(require 'desktop)
(add-hook 'desktop-save-hook
                  '(lambda ()
                         (desktop-truncate search-ring 3)
                         (desktop-truncate regexp-search-ring 3)))
(setq desktop-enable t)
(desktop-load-default)
(desktop-read)


HTH.
Daniel



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

Reply via email to