From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: murray@math.umass.edu
Cc: help-gnu-emacs@gnu.org
Subject: Re: Gnu emacs under Windows: .emacs and _emacs and savehist
Date: Wed, 11 Jul 2007 19:16:50 +0200 [thread overview]
Message-ID: <B71C205D-258C-4634-9563-7B31874FF730@Web.DE> (raw)
In-Reply-To: <4695047B.2000201@math.umass.edu>
Am 11.07.2007 um 18:25 schrieb Murray Eisenberg:
> I did get save desktop working by putting
>
> (desktop-save-mode 1)
>
> into my .emacs.
Some description in the Emacs manual under "Saving Emacs Sessions."
>
> But what is "save-session"? I tried finding that in help, but it
> tells me no match. (And searching on functions beginning "save"
> turns up no match, either, for "save-session" or "savesession", etc.)
Ah, sorry: it's just session.el (mixed with desktop):
(setq desktop-globals-to-save '(desktop-missing-file-warning))
(setq desktop-dirname (format "~/.emacs.d/PDesktop-%d" emacs-
major-version)) ; multi-version
(require 'session) ; "load" session
(add-hook 'after-init-hook 'session-initialize) ; init
(unless (string-match "Step 8" mEV) ; elderly Emacs
(unless buffer-read-only
(delete-trailing-whitespace)) ; convenient for *me*
(desktop-save-mode 1)
(setq session-save-file-coding-system 'utf-8-unix)) ; dito
(setq desktop-base-file-name "emacs.desktop") ; useless?
(setq session-save-file
(format "%s/Psession-%d" desktop-dirname emacs-major-
version)) ; multi-version
Save-hist has to do with saving mini-buffer contents. I have no
experience with this (I am not knowingly using it). Could be it means
that when you enter the mini-buffer (not the echo area) you have a
history of previous commands by using the up and down keys (including
some extras!). It might be that you see only replace or only shell-
command or only whatever commands you did before depending on the way
you entered mini-buffer. Just try a few things with M-x!
--
Greetings
Pete
"engineer: a mechanism for converting caffeine into designs"
next prev parent reply other threads:[~2007-07-11 17:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 4:04 Gnu emacs under Windows: .emacs and _emacs and savehist Murray Eisenberg
2007-07-11 8:54 ` Peter Dyballa
2007-07-11 11:29 ` Jason Rumney
2007-07-11 11:34 ` Jason Rumney
2007-07-11 14:10 ` Murray Eisenberg
2007-07-11 14:58 ` Vagn Johansen
2007-07-11 15:31 ` Peter Dyballa
2007-07-11 15:50 ` Lennart Borgman (gmail)
[not found] ` <mailman.3317.1184144075.32220.help-gnu-emacs@gnu.org>
2007-07-11 14:08 ` Murray Eisenberg
2007-07-11 15:24 ` Peter Dyballa
[not found] ` <mailman.3344.1184167477.32220.help-gnu-emacs@gnu.org>
2007-07-11 16:25 ` Murray Eisenberg
2007-07-11 17:16 ` Peter Dyballa [this message]
2007-07-11 18:48 ` Drew Adams
[not found] <mailman.3365.1184179766.32220.help-gnu-emacs@gnu.org>
2007-07-12 16:52 ` Murray Eisenberg
2007-07-12 17:05 ` Peter Dyballa
2007-07-12 17:09 ` Drew Adams
[not found] <mailman.3405.1184260312.32220.help-gnu-emacs@gnu.org>
2007-07-12 22:03 ` David Kastrup
2007-07-12 23:21 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B71C205D-258C-4634-9563-7B31874FF730@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=murray@math.umass.edu \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).