From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "=?iso-8859-1?Q?arthur.chereau?=" Newsgroups: gmane.emacs.help Subject: =?iso-8859-1?Q?Re:_Emacs_configuration?= Date: Tue, 1 Oct 2002 17:21:22 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1033485713 26613 127.0.0.1 (1 Oct 2002 15:21:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2002 15:21:53 +0000 (UTC) Cc: "=?utf-8?Q?harder?=" 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 17wOqM-0006uk-00 for ; Tue, 01 Oct 2002 17:21:50 +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 17wOqf-0001mV-00; Tue, 01 Oct 2002 11:22:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17wOqR-0001gx-00 for help-gnu-emacs@gnu.org; Tue, 01 Oct 2002 11:21:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17wOqO-0001g9-00 for help-gnu-emacs@gnu.org; Tue, 01 Oct 2002 11:21:54 -0400 Original-Received: from smtp-out.voila.wanadooportails.com ([193.252.117.74]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17wOqO-0001fx-00 for help-gnu-emacs@gnu.org; Tue, 01 Oct 2002 11:21:52 -0400 Original-Received: from voila.fr (10.3.7.82) by smtp-out.voila.wanadooportails.com (5.1.071) id 3D98D7AF00026739; Tue, 1 Oct 2002 17:21:22 +0200 X-Sensitivity: 3 Original-To: "=?utf-8?Q?help-gnu-emacs?=" X-XaM3-API-Version: 3.2 (B27) X-type: 0 X-SenderIP: 62.212.97.15 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: 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:2145 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2145 > Right, setf is defined in cl, try this: > > (require 'cl) > (setf (nth 3 (assoc 'print-buffer tool-bar-map)) 'a2ps-buffer) That works, thanks ! > Try this instead: > (defun jh-setup-scratch () > (with-current-buffer "*scratch*" > (setq buffer-offer-save t) > (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)))))) > > (add-hook 'emacs-startup-hook 'jh-setup-scratch) That works too ! > I think that should be > > (setq user-init-file "/path/to/home/.emacs.d/.emacs") > > What do you see when you do `C-h v user-init-file'? It's undefined if .emacs is in ~/.emacs.d/, and if I put 2 .emacs (one in ~/ and one in ~/.emacs.d/), it always says "/home/arthur/.emacs". What's strange is that strace reports: stat64("/usr/share/emacs/site-lisp/site-start.el", {st_mode=3DS_IFREG|0644, st_size=3D1001, ...}) =3D 0 open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) =3D 3 close(3) =3D 0 stat64("/usr/share/emacs/site-lisp/site-start.el", {st_mode=3DS_IFREG|0644, st_size=3D1001, ...}) =3D 0 open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) =3D 3 close(3) =3D 0 stat64("/usr/share/emacs/site-lisp/site-start.el", {st_mode=3DS_IFREG|0644, st_size=3D1001, ...}) =3D 0 open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) =3D 3 read(3, "(setq user-init-file \"/home/arth"..., 1053) =3D 1053 close(3) =3D 0 stat64("/home/arthur/.emacs.elc", 0xbfffeb28) =3D -1 ENOENT (No such file or directory) stat64("/home/arthur/.emacs.elc.gz", 0xbfffeb28) =3D -1 ENOENT (No such file or directory) stat64("/home/arthur/.emacs.el.gz", 0xbfffeb28) =3D -1 ENOENT (No such file or directory) stat64("/home/arthur/.emacs.el", 0xbfffeb28) =3D -1 ENOENT (No such file or directory) stat64("/home/arthur/.emacs", {st_mode=3DS_IFREG|0644, st_size=3D15632, ...}) =3D 0 open("/home/arthur/.emacs", O_RDONLY|O_LARGEFILE) =3D 3 close(3) =3D 0 site-start.el is: (setq user-init-file "/home/arthur/.emacs.d/.emacs") So I think I'm missing something with site-start.el but can't figure out what. ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr