home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!engage.pko.dec.com!newsdaemon
- From: eje@irenaeus.mlo.dec.com (Eric James Ewanco)
- Subject: Re: another .emacs problem
- Message-ID: <1992Sep2.193157.15462@engage.pko.dec.com>
- Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
- Reply-To: ewanco@kalvin.enet.dec.com
- Organization: Digital Equipment Corporation
- References: <1992Sep1.182617.15356@engage.pko.dec.com> <1992Sep1.195517.18971@ncar.ucar.edu> <1992Sep2.154319.15711@den.mmc.com>
- Distribution: usa
- Date: Wed, 2 Sep 1992 19:31:57 GMT
- Lines: 56
-
-
- I discovered why my .emacs file was functioning correctly when evaluated in a
- buffer but not upon startup. Well, I take that back, I discovered how to fix
- it, I'm not sure I understand why it did fix it, though.
-
- Someone mailed me this suggestion:
- ----------
- From: DECWRL::"ange@hplb.hpl.hp.com" "Andy Norman" 2-SEP-1992 05:00:10.94
- To: kalvin::ewanco
- CC:
- Subj: Re: another .emacs problem
-
- Hi Eric.
-
- Recently in gnu.emacs.help, you wrote:
-
- > Unfortunately I have this problem that whenever I bring up .emacs, I get an
- > "Error in init file".
-
- My guess is that you are doing something that is either terminal or
- window-system specific.
-
- Look for any lines that attempt to access X11, mouse, termianl-specific
- variables. Wrap them in a function, then assign that function to either
- term-setup-hook or window-setup-hook... for example:
-
- (defun eric-setup-terminal ()
- (global-set-key "\[&34" 'foobar)
- (define-key x-mouse-map 'button-up 'ignore)
- ...)
-
- (setq term-setup-hook (function eric-setup-terminal))
-
- -- ange -- <><
-
- ange@hplb.hpl.hp.com
-
- -----------------
- This worked perfectly. I took all my X windows stuff, prefaced it with
- (defun eje-setup-X11 ()
-
- and terminated it with another parenthesis (that's it), and then added after it
- (setq window-setup-hook (function eje-setup-X11))
-
- and it work superbly.
-
- Thanks, Andy.
-
- Eric
- --
- /=============================================================================\
- | Eric Ewanco - Software Engineer For the rash and outrageous opinions ex-|
- | Digital Equipment Corp, Maynard MA pressed herein I alone am responsible; |
- | ewanco@kalvin.enet.dec.com they do not belong to DIGITAL(TM). |
- \==============================- 2 Th 2:15 -==================================/
-
-