[Top][All Lists]

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

Re: customize versus own expressions in .emacs

From: Pascal Bourguignon
Subject: Re: customize versus own expressions in .emacs
Date: 07 Apr 2005 13:42:54 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Tim X <address@hidden> writes:

> address@hidden (J. David Boyd) writes:
> > Tim X <address@hidden> 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*
   (lambda (path)
     (unless (and pjb:+light-emacs+
                  (member path
       (condition-case cc
             (load path  pjb:*load-noerror* nil) ;;pjb:*load-silent*)
          (setq show-messages t)
          (message (format "ERROR: %S" cc ))))))
    ;; all the files
    (if (file-directory-p
         (concatenate 'string (USER-HOMEDIR-PATHNAME) "/src/public/emacs"))
              (DIRECTORY (concatenate 'string (USER-HOMEDIR-PATHNAME)
    (list ;; some additional dynamic data:
     "~/.emacs-devises" )))
  (when show-messages
    (switch-to-buffer "*Messages*")
    (split-window-vertically)) )

(It's all very personnal...)

__Pascal Bourguignon__           
Grace personified,
I leap into the window.
I meant to do that.

reply via email to

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