[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnu emacs under Windows: .emacs and _emacs and savehist
From: |
Murray Eisenberg |
Subject: |
Re: Gnu emacs under Windows: .emacs and _emacs and savehist |
Date: |
Wed, 11 Jul 2007 10:08:56 -0400 |
User-agent: |
Thunderbird 2.0.0.4 (Windows/20070604) |
Peter Dyballa wrote:
Am 11.07.2007 um 06:04 schrieb Murray Eisenberg:
(require `savehist)
Shouldn't here an apostrophe (') be used?
What is the GNU Emacs manual telling you about a personal initialisation
file under MS Windows?
The manual says ".emacs" although other docs, for Windows emacs, say
"_emacs" will do. So I changed the file to ".emacs" and instead of
pointing save-hist to a file in directory .emacs, changed it to a file
in directory .emacs.d. So here's the relevant portion of my file ~/.emacs:
(require 'savehist)
(setq savehist-file "~/.emacs.d/history")
(setq savehist-length 1000)
(savehist-load)
(setq savehist-mode 1)
I changed the backquote to an apostrophe; changed the directory that's
the target of savehist-file; and as seemed to be suggested by help for
savehist, added the line setting savehist-mode to the positive value 1.
Now how do I USE savehist? This I cannot discern from the documentation.
(Sorry about asking such presumably elementary questions but, despite my
some 30+ years experience with computing, nothing about emacs is clear
or intuitive to me.)
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305