all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "arthur.chereau" <arthur.chereau@voila.fr>
Cc: harder <harder@myrealbox.com>
Subject: Re: Emacs configuration
Date: Tue,  1 Oct 2002 17:21:22 +0200	[thread overview]
Message-ID: <H3B6NM$8255EAEC05B954B7C278E37EA9849071@voila.fr> (raw)

> 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	other threads:[~2002-10-01 15:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 15:21 arthur.chereau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-30 15:13 emacs configuration Jude DaShiell
2021-09-30 15:56 ` tomas
2021-09-30 16:05   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-09-30 15:57 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-09-30 17:32   ` 2QdxY4RzWzUUiLuE
2021-09-30 21:49   ` Jean Louis
2021-09-30 22:11     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-01 20:34       ` Jean Louis
2021-09-30 16:03 ` 2QdxY4RzWzUUiLuE
2021-09-30 16:38 ` John W Higgins
     [not found] <mailman.1033485728.6848.help-gnu-emacs@gnu.org>
2002-10-01 20:45 ` Emacs configuration Jesper Harder
     [not found] <mailman.1033477527.28155.help-gnu-emacs@gnu.org>
2002-10-01 14:09 ` Jesper Harder
2002-10-01 13:04 arthur.chereau
     [not found] <mailman.1033377809.21117.help-gnu-emacs@gnu.org>
2002-09-30 17:01 ` Jesper Harder
2002-09-30 17:02 ` Kevin Rodgers
2002-10-01  6:04 ` Evgeny Roubinchtein
2002-10-01 14:57 ` Stefan Monnier <foo@acm.com>
2002-09-30  9:22 arthur.chereau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='H3B6NM$8255EAEC05B954B7C278E37EA9849071@voila.fr' \
    --to=arthur.chereau@voila.fr \
    --cc=harder@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.