help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cool and Useful LISP for the .emacs file


From: David Kastrup
Subject: Re: Cool and Useful LISP for the .emacs file
Date: 07 Nov 2003 15:28:03 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Adam Hardy <emacs@cyberspaceroad.com> writes:

> On 11/07/2003 12:27 PM Gareth Rees wrote:
> > Here's my cool tip:
> >    Delete your .emacs!
> > This means that you can go to a new machine, run Emacs on it, and it
> > works just the same as on your old machine!  No more confusion over
> > non-default keybindings, unusual settings for variables, bizarre mode
> > hooks, etc.  And when you find a problem you know it's really to do with
> > Emacs and not with some "cool" trick you copied out of someone else's
> > .emacs without understanding it.
> 
> Can you provide some lisp to put in my .emacs to do that? ;)

(condition-case error
  (delete-file user-init-file)
 (error (message "While trying to delete .emacs:%s"
         error-message-string error)))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]