From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Emacs configuration Date: Mon, 30 Sep 2002 19:01:38 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033406191 22965 127.0.0.1 (30 Sep 2002 17:16:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Sep 2002 17:16:31 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17w49k-0005y9-00 for ; Mon, 30 Sep 2002 19:16:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17w49t-00081a-00; Mon, 30 Sep 2002 13:16:37 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-fra1.dfn.de!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2096 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2096 "arthur.chereau" writes: > I'm configuring emacs 21.2 and there are some things I can't find any > doc about, so I'm asking you: > > - How is it possible to configure the action done by the printer icon? > I'd like it to call a2ps-buffer. I don't know the command `a2ps-buffer' -- do you mean `ps-print-buffer'? You can change the command from `print-buffer' to `ps-print-buffer' like this: (setf (nth 3 (assoc 'print-buffer tool-bar-map)) 'ps-print-buffer) > - How is it possible to force emacs to confirm when killing the > *scratch* buffer ? (save-excursion (set-buffer "*scratch*") (make-local-variable 'kill-buffer-query-functions) (setq kill-buffer-query-functions (list (lambda () (if (buffer-modified-p) (y-or-n-p "Really kill buffer? ") t))))) > - Is there any means of having only one emacs process running for all > the emacs windows ? I mean, not like emacsclient or gnuserv, Why not? This is exactly what they're meant for. > - Last, is it possible to put all the configuration files under a > ~/.emacs/ directory, containing the .emacs file and the contents of > the ~/ .emacs.d/ directory ? You can set `user-init-file' in your site-start.el file to tell Emacs where to look for .emacs.