Re: Emacs load path

2016-01-06 Thread Alex Kost
Federico Beffa (2016-01-05 16:21 +0300) wrote: > On Tue, Jan 5, 2016 at 10:40 AM, Alex Kost wrote: Returning to 'guix-config' problem, we can make a "soft" dependency on 'guix-profiles' (see the attached patch), so the only file needed for finding emacs packages in "guix.d" will be

Re: Emacs load path

2016-01-05 Thread Federico Beffa
On Tue, Jan 5, 2016 at 10:40 AM, Alex Kost wrote: > Federico Beffa (2016-01-04 13:18 +0300) wrote: > >> On Sat, Jan 2, 2016 at 3:13 PM, Alex Kost wrote: >>> Federico Beffa (2016-01-01 19:53 +0300) wrote: > [...] there's no 'guix-config.el', but only 'guix-config.el.in'. It would be grea

Re: Emacs load path

2016-01-05 Thread Alex Kost
Federico Beffa (2016-01-04 13:18 +0300) wrote: > On Sat, Jan 2, 2016 at 3:13 PM, Alex Kost wrote: >> Federico Beffa (2016-01-01 19:53 +0300) wrote: [...] >>> there's no 'guix-config.el', but only 'guix-config.el.in'. It would be >>> great if you could provide a working patch. >> >> Hm, OK, so you

Re: Emacs load path

2016-01-04 Thread Federico Beffa
On Sat, Jan 2, 2016 at 3:13 PM, Alex Kost wrote: > Federico Beffa (2016-01-01 19:53 +0300) wrote: > >> On Fri, Jan 1, 2016 at 5:28 PM, Alex Kost wrote: >>> Ludovic Courtès (2016-01-01 18:22 +0300) wrote: >>> > then we should definitely add code in a similar way to instruct emacs > to look

Re: Emacs load path

2016-01-02 Thread Alex Kost
Federico Beffa (2016-01-01 19:53 +0300) wrote: > On Fri, Jan 1, 2016 at 5:28 PM, Alex Kost wrote: >> Ludovic Courtès (2016-01-01 18:22 +0300) wrote: >> then we should definitely add code in a similar way to instruct emacs to look in the right places (".../guix.d") for our emacs packages

Re: Emacs load path

2016-01-01 Thread Federico Beffa
On Fri, Jan 1, 2016 at 5:28 PM, Alex Kost wrote: > Ludovic Courtès (2016-01-01 18:22 +0300) wrote: > >>> then we should definitely add code in a similar way to instruct emacs >>> to look in the right places (".../guix.d") for our emacs packages out >>> of the box. As Dmitry rightfully points out,

Re: Emacs load path

2016-01-01 Thread Alex Kost
Federico Beffa (2016-01-01 17:25 +0300) wrote: > On Wed, Dec 30, 2015 at 5:55 PM, Federico Beffa wrote: >> On Wed, Dec 30, 2015 at 5:29 PM, Ludovic Courtès wrote: >>> Federico Beffa skribis: >>> If you install guix in the default prefix (/usr/local) you should find a file called 'guix

Re: Emacs load path

2016-01-01 Thread Alex Kost
Ludovic Courtès (2016-01-01 18:22 +0300) wrote: >> then we should definitely add code in a similar way to instruct emacs >> to look in the right places (".../guix.d") for our emacs packages out >> of the box. As Dmitry rightfully points out, having emacs packages >> which do not work out of the b

Re: Emacs load path

2016-01-01 Thread Ludovic Courtès
Alex Kost skribis: > From 938e45e104b55b32d6c2423543c18efc7dc9365a Mon Sep 17 00:00:00 2001 > From: Alex Kost > Date: Fri, 1 Jan 2016 01:37:45 +0300 > Subject: [PATCH] doc: Describe how to configure Emacs packages. > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-

Re: Emacs load path

2016-01-01 Thread Ludovic Courtès
Federico Beffa skribis: > On Wed, Dec 30, 2015 at 5:55 PM, Federico Beffa wrote: >> On Wed, Dec 30, 2015 at 5:29 PM, Ludovic Courtès wrote: >>> Federico Beffa skribis: >>> If you install guix in the default prefix (/usr/local) you should find a file called 'guix.el' in /usr/local/sha

Re: Emacs load path

2016-01-01 Thread Federico Beffa
On Wed, Dec 30, 2015 at 5:55 PM, Federico Beffa wrote: > On Wed, Dec 30, 2015 at 5:29 PM, Ludovic Courtès wrote: >> Federico Beffa skribis: >> >>> If you install guix in the default prefix (/usr/local) you should find a >>> file called 'guix.el' in /usr/local/share/emacs/site-lisp/. With that >

Re: Emacs load path

2015-12-31 Thread Alex Kost
Ludovic Courtès (2015-12-30 19:29 +0300) wrote: > Federico Beffa skribis: > >> If you install guix in the default prefix (/usr/local) you should find a >> file called 'guix.el' in /usr/local/share/emacs/site-lisp/. With that >> you can include the following commands in your .emacs file and you >

Re: Emacs load path

2015-12-31 Thread Alex Kost
Federico Beffa (2015-12-31 12:27 +0300) wrote: > On Thu, Dec 31, 2015 at 10:02 AM, Alex Kost wrote: >>> I would mimic the emacs package system: The packages are loaded after >>> loading the init file. To disable automatic package loading, you can >>> change the variable ‘package-enable-at-startup

Re: Emacs load path

2015-12-31 Thread Federico Beffa
On Thu, Dec 31, 2015 at 10:02 AM, Alex Kost wrote: >> I would mimic the emacs package system: The packages are loaded after >> loading the init file. To disable automatic package loading, you can >> change the variable ‘package-enable-at-startup’ to ‘nil’. > > This is already mimic-ed: there is ‘g

Re: Emacs load path

2015-12-31 Thread Alex Kost
Federico Beffa (2015-12-31 01:18 +0300) wrote: > On Wed, Dec 30, 2015 at 7:55 PM, Alex Kost wrote: >>> A useful approach would be to fix the problem such that if a user >>> installs emacs with guix the above steps happen automatically without >>> any user intervention. >> >> Yeah, it would probab

Re: Emacs load path

2015-12-30 Thread Federico Beffa
On Wed, Dec 30, 2015 at 7:55 PM, Alex Kost wrote: >> A useful approach would be to fix the problem such that if a user >> installs emacs with guix the above steps happen automatically without >> any user intervention. > > Yeah, it would probably be a good default, but only if this default can > be

Re: Emacs load path

2015-12-30 Thread Alex Kost
Federico Beffa (2015-12-30 15:16 +0300) wrote: > On Mon, Dec 28, 2015 at 11:15 PM, Alex Kost wrote: >> Federico Beffa (2015-12-28 01:16 +0300) wrote: >> >> [...] >>> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") >>> load-path)) >> >> This is very unusual. Why 'append' instea

Re: Emacs load path

2015-12-30 Thread Federico Beffa
On Wed, Dec 30, 2015 at 5:29 PM, Ludovic Courtès wrote: > Federico Beffa skribis: > >> If you install guix in the default prefix (/usr/local) you should find a >> file called 'guix.el' in /usr/local/share/emacs/site-lisp/. With that >> you can include the following commands in your .emacs file a

Re: Emacs load path

2015-12-30 Thread Ludovic Courtès
Federico Beffa skribis: > If you install guix in the default prefix (/usr/local) you should find a > file called 'guix.el' in /usr/local/share/emacs/site-lisp/. With that > you can include the following commands in your .emacs file and you > should be all set: > > 1. (setq load-path (append '("/

Re: Emacs load path

2015-12-30 Thread Federico Beffa
On Mon, Dec 28, 2015 at 11:15 PM, Alex Kost wrote: > Federico Beffa (2015-12-28 01:16 +0300) wrote: > > [...] >> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") load-path)) > > This is very unusual. Why 'append' instead of 'cons'? Anyway an > idiomatic way is: (add-to-list 'loa

Re: Emacs load path

2015-12-28 Thread Taylan Ulrich Bayırlı/Kammer
Alex Kost writes: > Federico Beffa (2015-12-28 01:16 +0300) wrote: > > [...] >> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") load-path)) > > This is very unusual. Why 'append' instead of 'cons'? Anyway an > idiomatic way is: (add-to-list 'load-path "dir") If it's important

Re: Emacs load path

2015-12-28 Thread Alex Kost
Federico Beffa (2015-12-28 01:16 +0300) wrote: [...] > 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") load-path)) This is very unusual. Why 'append' instead of 'cons'? Anyway an idiomatic way is: (add-to-list 'load-path "dir") -- Alex

Emacs load path (was: Re: Multiple versions)

2015-12-27 Thread Federico Beffa
Alex Kost writes: > Dmitry Bogatov (2015-12-27 19:47 +0300) wrote: > >> * Alex Kost [2015-12-27 17:11:20+0300] >>> Dmitry Bogatov (2015-12-27 02:02 +0300) wrote: >>> >>> > * By default, ~/.guix-profile/share/emacs/site-lisp/guix.d is not in >>> > load-path. `emacs-no-x` exports no variable

Re: Emacs load path

2015-12-27 Thread Alex Kost
Dmitry Bogatov (2015-12-27 19:47 +0300) wrote: > * Alex Kost [2015-12-27 17:11:20+0300] >> Dmitry Bogatov (2015-12-27 02:02 +0300) wrote: >> >> > * By default, ~/.guix-profile/share/emacs/site-lisp/guix.d is not in >> > load-path. `emacs-no-x` exports no variables. So, if I install >> >

Emacs load path (was: Re: Multiple versions)

2015-12-27 Thread Dmitry Bogatov
* Alex Kost [2015-12-27 17:11:20+0300] > Dmitry Bogatov (2015-12-27 02:02 +0300) wrote: > > > * By default, ~/.guix-profile/share/emacs/site-lisp/guix.d is not in > > load-path. `emacs-no-x` exports no variables. So, if I install > > some emacs library, like `emacs-f`, evaluating (requi