Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!chinet!nucsrl!lius From: lius@nucsrl.UUCP Newsgroups: comp.emacs Subject: Re: global-set-key in .emacs Message-ID: <3910012@nucsrl.UUCP> Date: Sun, 27-Sep-87 02:25:46 EDT Article-I.D.: nucsrl.3910012 Posted: Sun Sep 27 02:25:46 1987 Date-Received: Sun, 27-Sep-87 22:07:56 EDT References: <4950@bunny.UUCP> Organization: Northwestern U, Evanston IL, USA Lines: 30 >I'm attempting to use global-set-key in my .emacs file but >it acts like the default bindings are being set after the .emacs file is >loaded, so my bindings never take effect. It is right. Emacs's loading sequences are: ~/.emacs => emacs default files => term-setup-hook => files under option "-l" Therefore, you may fix it with the following two methods: 1. Create your initialization file, saying "init.el". Do one of the following steps: 2. Create an alias for emacs, such as alias emacs 'emacs \!* -l init' (you may insert it in ~/.login) or 2'. Insert the following code in your ".emacs" (setq term-setup-hook '(lambda () (load "init"))) Both 2 and 2' work because init.el will be loaded after all default files have been loaded by emacs. Sying-Syang Liu Dept. of EECS, Northwestern University UUCP: {gargoyle,ihnp4,chinet}!nucsrl!lius ARPA/CSNet: lius@EECS.NWU.Edu