Re: emacs load-path

2011-12-02 Thread Alberto Luaces
Nicolas Bercher writes:

> Jude DaShiell a écrit :
>> First make sure they'll load after running emacs and hitting meta-x
>> and keying in the file names.  Then read the original .el files for
>> instructions.  I expect you'll find code in them starting with
>> (require that needs to be inserted in your .emacs file to have these
>> load on start up.
>
> That is just what I did and is working good.  But still I'm surprised,
> maybe load-path is just used to define places *where to find files*, and
> not the list of files to load automatically on sartup.

That's it. load-path is not a function, but a variable (check with "C-h
v load-path"). It is the path where emacs looks for .el files, similar
to PATH in the system. It doesn't mean "load this path".

-- 
Alberto


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87aa7bkxvh@eps142.cdf.udc.es



Re: emacs load-path

2011-12-02 Thread Jude DaShiell
That's exactly correct.On Fri, 2 Dec 2011, Nicolas Bercher wrote:

> Jude DaShiell a ?crit :
> > First make sure they'll load after running emacs and hitting meta-x and
> > keying in the file names.  Then read the original .el files for
> > instructions.  I expect you'll find code in them starting with (require that
> > needs to be inserted in your .emacs file to have these load on start up.
> 
> That is just what I did and is working good.  But still I'm surprised,
> maybe load-path is just used to define places *where to find files*, and
> not the list of files to load automatically on sartup.
> 
> Thanks,
> Nicolas
> 
> 
> 


Jude 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.bsf.2.01.1112020622330.67...@freire1.furyyjbeyq.arg



Re: emacs load-path

2011-12-02 Thread Nicolas Bercher

Jude DaShiell a écrit :
First make sure they'll load after running emacs and hitting meta-x and 
keying in the file names.  Then read the original .el files for 
instructions.  I expect you'll find code in them starting with (require 
that needs to be inserted in your .emacs file to have these load on 
start up.


That is just what I did and is working good.  But still I'm surprised,
maybe load-path is just used to define places *where to find files*, and
not the list of files to load automatically on sartup.

Thanks,
Nicolas


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4ed8ae6a.9010...@yahoo.fr



Re: emacs load-path

2011-12-02 Thread Jude DaShiell
First make sure they'll load after running emacs and hitting meta-x and 
keying in the file names.  Then read the original .el files for 
instructions.  I expect you'll find code in them starting with (require 
that needs to be inserted in your .emacs file to have these load on 
start up.

On Fri, 2 Dec 2011, Nicolas Bercher wrote:

> Something is driving me crazy as it seems to be so trivial.
> 
> I have a bunch of .el files I'd like emacs to load on startup (emacs-22,
> Lenny).  I saved them to ~/.emacs.d/elisp/:
> 
>   $ ls -l ~/.emacs.d/elisp/
>   total 8
>   -rwxr-xr-x 1 nbercher nbercher 496 d?c  2 10:23 nb-org-mode.el
>   -rwxr-xr-x 1 nbercher nbercher 942 d?c  2 10:23 nb-windows.el
> 
> So I added the following to my ~/.emacs:
> 
>   (add-to-list 'load-path "~/.emacs.d/elisp/")
> 
> I can check it is taken into account:
> 
>   C-h v load-path
>   [...]
>   Its value is
>   ("/home/nbercher/.emacs.d/elisp/"
>   [...]
> 
> I can also check that my libraries can be found by emacs:
> 
>   M-x locate-library RET nb-org-mode.el
>   Library is file ~/.emacs.d/elisp/nb-org-mode.el
> 
> But, emacs don't load them on startup, what do I miss?
> 
> Thanks!
> Nicolas
> 
> PS: I lauch emacs with "emacs -nw"
> 
> 
> 


Jude 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.bsf.2.01.1112020528080.64...@freire1.furyyjbeyq.arg



Re: emacs load-path

2011-12-02 Thread Alberto Luaces
Nicolas Bercher writes:

> Something is driving me crazy as it seems to be so trivial.
>
> I have a bunch of .el files I'd like emacs to load on startup (emacs-22,
> Lenny).  I saved them to ~/.emacs.d/elisp/:
>
>   $ ls -l ~/.emacs.d/elisp/
>   total 8
>   -rwxr-xr-x 1 nbercher nbercher 496 déc  2 10:23 nb-org-mode.el
>   -rwxr-xr-x 1 nbercher nbercher 942 déc  2 10:23 nb-windows.el
>
> So I added the following to my ~/.emacs:
>
>   (add-to-list 'load-path "~/.emacs.d/elisp/")
>
> I can check it is taken into account:
>
>   C-h v load-path
>   [...]
>   Its value is
>   ("/home/nbercher/.emacs.d/elisp/"
>   [...]
>
> I can also check that my libraries can be found by emacs:
>
>   M-x locate-library RET nb-org-mode.el
>   Library is file ~/.emacs.d/elisp/nb-org-mode.el
>
> But, emacs don't load them on startup, what do I miss?
>
> Thanks!
> Nicolas
>
> PS: I lauch emacs with "emacs -nw"

Unless someone comes with something better, I think that you also have
to load every one of your files explicitly with load-file.

Take a look at https://www.gnu.org/s/libtool/manual/emacs/Init-File.html .

-- 
Alberto


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87ehwnl12d@eps142.cdf.udc.es