all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path))
@ 2002-09-18 23:35 Grimnir
  2002-09-19 15:59 ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Grimnir @ 2002-09-18 23:35 UTC (permalink / raw)


I'm trying to install session.el on my SuSE Linux system. I downloaded it 
from: http://emacs-session.sourceforge.net/

The INSTALL file says:


    "The cases:
        ...
      (b) You use Emacs and install Session in your home directory:
          create directory "~/.emacs.d/lisp/" and copy "lisp/session.el"
          to it.  Add the following lines at the beginning of your Emacs
          init file:

             (setq load-path
                   (cons (expand-file-name "~/.emacs.d/lisp") load-path))"


I added that to my .gnu-emacs but it doesn't seem to modify the load-path 
variable.  I really don't want to start playing around with the load path 
in the compile if I can aviod it, and I don't want to resort to having the 
same *.el in multiple place, nor symlinking them.  The above Lisp statement 
looks like a very attractive solution. Unfortunately, it doesn't seem to 
work. 

Can someone clarify what behavior I should expect from that statement?  Does 
it work for you?

-- STH

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path))
@ 2002-09-19 15:38 Bingham, Jay
  0 siblings, 0 replies; 6+ messages in thread
From: Bingham, Jay @ 2002-09-19 15:38 UTC (permalink / raw)


I just tried the statement as you have it in your message.  I don't know if this is exactly what you have in your .emacs but if it is it will not work you have an extra double quote at the end of the statement.

If you want to see how something will work paste it into the scratch buffer and type C-j at the end of the sexp.  Emacs will attempt to execute/evaluate the expression and will display the results in the scratch buffer.

-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Product Assurance
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire.          -Dr. George W. Crane-

 -----Original Message-----
From: 	Grimnir [mailto:valfather@hotmail.com] 
Sent:	Wednesday, September 18, 2002 6:35 PM
To:	help-gnu-emacs@gnu.org
Subject:	(setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path))

I'm trying to install session.el on my SuSE Linux system. I downloaded it 
from: http://emacs-session.sourceforge.net/

The INSTALL file says:


    "The cases:
        ...
      (b) You use Emacs and install Session in your home directory:
          create directory "~/.emacs.d/lisp/" and copy "lisp/session.el"
          to it.  Add the following lines at the beginning of your Emacs
          init file:

             (setq load-path
                   (cons (expand-file-name "~/.emacs.d/lisp") load-path))"


I added that to my .gnu-emacs but it doesn't seem to modify the load-path 
variable.  I really don't want to start playing around with the load path 
in the compile if I can aviod it, and I don't want to resort to having the 
same *.el in multiple place, nor symlinking them.  The above Lisp statement 
looks like a very attractive solution. Unfortunately, it doesn't seem to 
work. 

Can someone clarify what behavior I should expect from that statement?  Does 
it work for you?

-- STH
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path))
  2002-09-18 23:35 (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path)) Grimnir
@ 2002-09-19 15:59 ` Reiner Steib
  2002-09-19 17:59   ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2002-09-19 15:59 UTC (permalink / raw)


On Thu, Sep 19 2002, valfather@hotmail.com wrote:

> I added that to my .gnu-emacs but it doesn't seem to modify the load-path 
> variable.

".gnu-emacs"? I've seen this on SuSE Linux systems, but Emacs usually
is looking for "~/.emacs". Are you sure, that ".gnu-emacs" is used?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (setq load-path (cons (expand-file-name "~/.emacs.d/lisp")   load-path))
  2002-09-19 15:59 ` Reiner Steib
@ 2002-09-19 17:59   ` Kevin Rodgers
  2002-09-19 19:15     ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2002-09-19 17:59 UTC (permalink / raw)


Reiner Steib wrote:

> On Thu, Sep 19 2002, valfather@hotmail.com wrote:
>>I added that to my .gnu-emacs but it doesn't seem to modify the load-path 
>>variable.
> 
> ".gnu-emacs"? I've seen this on SuSE Linux systems, but Emacs usually
> is looking for "~/.emacs". Are you sure, that ".gnu-emacs" is used?


`C-h v user-init-file RET'

-- 
Kevin Rodgers <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (setq load-path (cons (expand-file-name "~/.emacs.d/lisp")   load-path))
  2002-09-19 17:59   ` Kevin Rodgers
@ 2002-09-19 19:15     ` Reiner Steib
  2002-09-19 22:12       ` Grimnir
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2002-09-19 19:15 UTC (permalink / raw)


On Thu, Sep 19 2002, Kevin Rodgers wrote:

> Reiner Steib wrote:
>
>> On Thu, Sep 19 2002, valfather@hotmail.com wrote:
>>> I added that to my .gnu-emacs but it doesn't seem to modify the load-path
>>> variable.
>> ".gnu-emacs"? I've seen this on SuSE Linux systems, but Emacs usually
>> is looking for "~/.emacs". Are you sure, that ".gnu-emacs" is used?
>
> `C-h v user-init-file RET'

It's clear, that there are billions of possibilities to load a file
named ".gnu-emacs". ;-) But the OP mentioned that `load-path' wasn't
modified, so it's suggesting to assume that the file was not loaded,
as the lisp code is correct.

FYI: What SuSE does (or at least did) is...

,----[ /etc/skel/.emacs ]
| (if (string-match "XEmacs\\|Lucid" emacs-version)
|     (progn
|       XEmacs-stuff-here)
|   (progn
|     (if (file-readable-p "~/.gnu-emacs")
| 	(load "~/.gnu-emacs" nil t)
|       Emacs-stuff-here)))
`----

(no, I wouldn't recommend this)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path))
  2002-09-19 19:15     ` Reiner Steib
@ 2002-09-19 22:12       ` Grimnir
  0 siblings, 0 replies; 6+ messages in thread
From: Grimnir @ 2002-09-19 22:12 UTC (permalink / raw)


Reiner Steib wrote:

> On Thu, Sep 19 2002, Kevin Rodgers wrote:
> 
>> Reiner Steib wrote:
>>
>>> On Thu, Sep 19 2002, valfather@hotmail.com wrote:
>>>> I added that to my .gnu-emacs but it doesn't seem to modify the
>>>> load-path variable.
>>> ".gnu-emacs"? I've seen this on SuSE Linux systems, but Emacs usually
>>> is looking for "~/.emacs". Are you sure, that ".gnu-emacs" is used?
>>
>> `C-h v user-init-file RET'
> 
> It's clear, that there are billions of possibilities to load a file
> named ".gnu-emacs". ;-) But the OP mentioned that `load-path' wasn't
> modified, so it's suggesting to assume that the file was not loaded,
> as the lisp code is correct.
> 
> FYI: What SuSE does (or at least did) is...
> 
> ,----[ /etc/skel/.emacs ]
> | (if (string-match "XEmacs\\|Lucid" emacs-version)
> |     (progn
> |       XEmacs-stuff-here)
> |   (progn
> |     (if (file-readable-p "~/.gnu-emacs")
> | (load "~/.gnu-emacs" nil t)
> |       Emacs-stuff-here)))
> `----
> 
> (no, I wouldn't recommend this)
> 
> Bye, Reiner.

This is exactly what happened on my box.  I'm not sure why some things 
weren't working with the .gnu-emacs file, but removing it from the mix 
seems to have fixed a few problems.  

The .gnu-emacs is not the end of the saga.The also do:

,----[ /etc/skel/.emacs ]
|  ;; Custum Settings
|  ;; ===============
|  ;; To avoid any trouble with the customization system of GNU emacs
|  ;; we set the default file ~/.gnu-emacs-custom
|  (setq custom-file "~/.gnu-emacs-custom")
|  (load "~/.gnu-emacs-custom" t t)
|;;;
|)
|;;;
`----

I have yet to test the   
(setq load-path
     (cons (expand-file-name "~/.emacs.d/lisp") load-path))"
with a clean .emacs.  

I guess anybody who wants to have anything beyond the default setup in Emacs 
he will have to learn a certain amount of Lisp, whether he wants to or not. 

-- STH

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-19 22:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18 23:35 (setq load-path (cons (expand-file-name "~/.emacs.d/lisp") load-path)) Grimnir
2002-09-19 15:59 ` Reiner Steib
2002-09-19 17:59   ` Kevin Rodgers
2002-09-19 19:15     ` Reiner Steib
2002-09-19 22:12       ` Grimnir
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19 15:38 Bingham, Jay

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.