From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: Re: "variable [in .emacs] is void" Date: Mon, 22 Dec 2003 10:14:45 -0500 (EST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: sea.gmane.org 1072106211 3897 80.91.224.253 (22 Dec 2003 15:16:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 15:16:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 22 16:16:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYRnb-00005n-00 for ; Mon, 22 Dec 2003 16:16:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYSk0-0007M8-P4 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Dec 2003 11:17:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AYSjg-0007Lb-Op for help-gnu-emacs@gnu.org; Mon, 22 Dec 2003 11:16:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AYSjA-0007GU-2S for help-gnu-emacs@gnu.org; Mon, 22 Dec 2003 11:16:47 -0500 Original-Received: from [216.254.0.203] (helo=mail3.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AYSj9-0007GJ-NE for help-gnu-emacs@gnu.org; Mon, 22 Dec 2003 11:16:15 -0500 Original-Received: (qmail 5894 invoked from network); 22 Dec 2003 15:14:46 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 22 Dec 2003 15:14:46 -0000 Original-To: Karl =?iso-8859-1?q?Pfl=E4sterer?= In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15505 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15505 At 21:07 (UTC+0100) on Sun, 21 Dec 2003 Karl Pflästerer said: = An unnamed person wrote: = = > (eval-after-load "sendmail" = > (add-hook 'mail-setup-hook = ^ = = Here is the error. You need to quote that list. = [...] = = so it becomes: = = (eval-after-load "sendmail" = '(add-hook 'mail-setup-hook ... Great. That works. Now, I have some other functions which also use mail-mode-map. Can I wrap them in the same '(add-hook ...? Or do I need to duplicate the lines for each? ... like this? (eval-after-load "sendmail" '(add-hook 'mail-setup-hook '(define-key mail-mode-map mail-foo... (eval-after-load "sendmail" '(add-hook 'mail-setup-hook '(define-key mail-mode-map mail-bar... (eval-after-load "sendmail" '(add-hook 'mail-setup-hook '(define-key mail-mode-map foo-be-do-be-do... Even tidier and more readable, can I put all the sendmail-dependent defines in a separate (possibly byte-compiled) file and then have something like an "include" in my emacs evaluate them all subject to an (eval-after-load "sendmail" ...)? tnx++; ken