all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: customize versus own expressions in .emacs
Date: 07 Apr 2005 13:42:54 +0200	[thread overview]
Message-ID: <87hdiike2p.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 87is2yylbj.fsf@tiger.rapttech.com.au

Tim X <timx@spamto.devnul.com> writes:

> dave@adboyd.com (J. David Boyd) writes:
> 
> 
> > Tim X <timx@spamto.devnul.com> writes:
> >
> >>
> >> What I found works well for me is to put a bit of elisp at the
> >> beginning of my .emacs file which tells emacs to look in my own
> >> .emacs.d directory and load the files in that directory. 
> >
> > And you aren't going to share this piece of code?  We have to work it out for
> > ourselves? :->
> >
> 
> Hey, half the fun of emacs is working that sort of stuff out
> yourself! However, if someone really does want my bit of unworthy
> code, I'll provide it.

Let's compare:

(let ((show-messages nil)) ;;should we show *Messages*
  (mapcar
   (lambda (path)
     (unless (and pjb:+light-emacs+
                  (member path
                          '("pjb-banks-old"
                            "pjb-banks"
                            "pjb-bourse"
                            "pjb-cl-faces"
                            "pjb-computer-paper"
                            "pjb-constants"
                            "pjb-cvs"
                            "pjb-cvspass"
                            "pjb-dot"
                            "pjb-graph"
                            "pjb-i2p-expression"
                            "pjb-invoices"
                            "pjb-layers"
                            "pjb-make-depends"
                            "pjb-roman"
                            "pjb-s2p-expression"
                            "pjb-secouer"
                            "pjb-selftrade"
                            "pjb-server"
                            "pjb-transpose"
                            "pjb-vm-kill-file"
                            "pjb-worldfact")))
       (condition-case cc
           (progn
             (load path  pjb:*load-noerror* nil) ;;pjb:*load-silent*)
            )
         ('error
          (setq show-messages t)
          (message (format "ERROR: %S" cc ))))))
   (append
    ;; all the files
    (if (file-directory-p
         (concatenate 'string (USER-HOMEDIR-PATHNAME) "/src/public/emacs"))
      (mapcar (FUNCTION PATHNAME-NAME)
              (DIRECTORY (concatenate 'string (USER-HOMEDIR-PATHNAME)
                                      "/src/public/emacs/pjb-*.el")))
      (mapcar
       (FUNCTION PATHNAME-NAME)
       (DIRECTORY
        "/usr/local/share/lisp/packages/com/informatimago/emacs/pjb-*.el")))
    (list ;; some additional dynamic data:
     "~/.emacs-devises" )))
  (when show-messages
    (switch-to-buffer "*Messages*")
    (split-window-vertically)) )


(It's all very personnal...)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Grace personified,
I leap into the window.
I meant to do that.

  reply	other threads:[~2005-04-07 11:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.353.1111951880.28103.help-gnu-emacs@gnu.org>
2005-03-29 14:55 ` customize versus own expressions in .emacs Stefan Monnier
2005-04-02  4:29 ` Tim X
2005-04-04 13:39   ` J. David Boyd
2005-04-07  9:42     ` Tim X
2005-04-07 11:42       ` Pascal Bourguignon [this message]
2005-04-07 12:34       ` J. David Boyd
2005-04-07 16:45         ` Joe Corneli
2005-04-11  9:47         ` Tim X
2005-03-27 19:22 Sebastian Luque
     [not found] ` <87d5tklwr5.fsf-by2PdLBuqAc@public.gmane.org>
2005-03-27 21:39   ` Jochen Küpper
2005-03-29 10:11 ` Peter Dyballa
     [not found] ` <mailman.484.1112092111.28103.help-gnu-emacs@gnu.org>
2005-03-29 11:33   ` Thien-Thi Nguyen
2005-03-29 14:47     ` Joe Corneli
2005-03-29 14:57   ` Stefan Monnier

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=87hdiike2p.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.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.