home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!spool.mu.edu!umn.edu!mmm.serc.3m.com!mmc.mmmg.com!timbuk.cray.com!hemlock.cray.com!ericdh
- From: ericdh@cray.com (Eric D. Hendrickson)
- Subject: How do I initialize a variable at start-up, and keep it?
- Message-ID: <1992Sep15.110810.24028@hemlock.cray.com>
- Lines: 43
- Organization: Cray Research, Inc.
- Distribution: gnu
- Date: 15 Sep 92 11:08:10 CDT
-
-
- I am optimizing my .emacs file a little, and I find that when I do M-x
- load-file ~/.emacs, its not the same as an initial start-up of Emacs
- because my elisp path and auto-mode-alist are already set, thus not
- accurately reflecting any holes in my start-up.
-
- I would like to make my .emacs such that every time I do a M-x load-file
- ~/.emacs, everything starts over fresh. Such as my load-path, etc.
-
- The way I have started is to do something like this:
-
- ;;; initialize load-path
- ;;;
- (if (string-equal 'initial-load-path "")
- (let initial-load-path 'load-path) ; save for M-x load-path ~/.emacs
- )
- (setq load-path (cons (concat (getenv "HOME") "/elisp") initial-load-path))
-
- The problem with this is that initial-load-path is a void symbol initially,
- and there doesn't seem to be a way to initialize it to 'load-path ONLY at
- Emacs start-up.
-
- Does anybody have a solution for this? Perhaps there is a completely
- better direction than this one to achieve the same purpose.
-
- Thanks for any help!
-
- --eric
- (p.s. is there an easier way to append a file to a buffer than reading the
- file in (with C-x f) and doing a C-x a to append it? e.g. manually
- appending my .signature to a buffer?)
- --
- I happen to be a Republican president- ah, the vice president.
- -- Vice President Dan Quayle (Newsweek 4/9/90)
-
- Eric D. Hendrickson Damnit! I can't stop the heterocyclic declination!
- Cray Research, Inc. The game is afoot!
- 612/683-5302 ericdh@cray.com Eh to desu ne...
- --
- I happen to be a Republican president- ah, the vice president.
- -- Vice President Dan Quayle (Newsweek 4/9/90)
-
- Eric D. Hendrickson Damnit! I can't stop the heterocyclic declination!
-