help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs configuration


From: arthur.chereau
Subject: Re: Emacs configuration
Date: Tue, 1 Oct 2002 17:21:22 +0200

> 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=S_IFREG|0644, 
st_size=1001,
...}) = 0
open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) = 3
close(3)                                = 0
stat64("/usr/share/emacs/site-lisp/site-start.el", {st_mode=S_IFREG|0644, 
st_size=1001,
...}) = 0
open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) = 3
close(3)                                = 0
stat64("/usr/share/emacs/site-lisp/site-start.el", {st_mode=S_IFREG|0644, 
st_size=1001,
...}) = 0
open("/usr/share/emacs/site-lisp/site-start.el", O_RDONLY|O_LARGEFILE) = 3
read(3, "(setq user-init-file \"/home/arth"..., 1053) = 1053
close(3)                                = 0
stat64("/home/arthur/.emacs.elc", 0xbfffeb28) = -1 ENOENT (No such file or 
directory)
stat64("/home/arthur/.emacs.elc.gz", 0xbfffeb28) = -1 ENOENT (No such file or 
directory)
stat64("/home/arthur/.emacs.el.gz", 0xbfffeb28) = -1 ENOENT (No such file or 
directory)
stat64("/home/arthur/.emacs.el", 0xbfffeb28) = -1 ENOENT (No such file or 
directory)
stat64("/home/arthur/.emacs", {st_mode=S_IFREG|0644, st_size=15632, ...}) = 0
open("/home/arthur/.emacs", O_RDONLY|O_LARGEFILE) = 3
close(3)                                = 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]