🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8273

How do I abort processing of .emacs?

#8273
From: Randy Orrison
Date: Tue, 10 Jan 1989 20:45
22 lines
1352 bytes
I'm a little annoyed with the behavior of GNU emacs when I'm su'ed to
root.  It reads my .emacs file (~randy/.emacs) instead of /.emacs,
which isn't too bad, though I'd prefer it read /.emacs.  In my .emacs,
though, I have a backup package which I got from someone on the net
(Neil Gordon Smithline <neil%buffalo.csnet@relay.cs.net>) which puts
all the backups in ~/.gnubackups.  For this, emacs expands ~ as /, but
I don't have a /.gnubackups directory, and don't want one.  I'd like
to not load the backups stuff when su'ed.  So, here's what I want to
do:

(if (equal (getenv "HOME") "/")
    ( skip-the-rest-of-.emacs ))

How do I do the skip?  (Or, is there a better way to do what I want?)

	Thanks!!!
		-randy

(P.S.  someday I'm going to read the elisp programming manual and
write a function that re-formats quoted paragraphs, keeping the '> '
at the beginning of each line, unless someone else has already done
this...  hint hint)
Technical Details
Message-ID: <103@garnet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!xanth!nic.MR.NET!shamash!garnet!randy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!xanth!nic.MR.NET!shamash!garnet!randy
From: randy@garnet.UUCP (Randy Orrison)
Newsgroups: comp.emacs
Subject: How do I abort processing of .emacs?
Message-ID: <103@garnet.UUCP>
Date: 10 Jan 89 20:45:12 GMT
Reply-To: randy@garnet.UUCP (Randy Orrison)
Distribution: na
Organization: Control Data in the Hills of Arden, Minnesota
Lines: 22