From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: guix installed Emacs Date: Sun, 17 Apr 2016 14:28:26 +0200 Message-ID: References: <87potpj4w6.fsf@gmail.com> <877ffxixed.fsf@gmail.com> <87twj0d4ov.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bea3bac83c3230530ad613c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arloT-0007p4-Ru for help-guix@gnu.org; Sun, 17 Apr 2016 08:28:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arloS-00019O-5K for help-guix@gnu.org; Sun, 17 Apr 2016 08:28:29 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:35408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arloR-00019K-Tq for help-guix@gnu.org; Sun, 17 Apr 2016 08:28:28 -0400 Received: by mail-ig0-x233.google.com with SMTP id gy3so52825163igb.0 for ; Sun, 17 Apr 2016 05:28:27 -0700 (PDT) In-Reply-To: <87twj0d4ov.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix@gnu.org --047d7bea3bac83c3230530ad613c Content-Type: text/plain; charset=UTF-8 2016-04-17 10:23 GMT+02:00 Alex Kost : > > [...] > > Yes, the Fedora Emacs has this site-start > > > > ;;; loaded before user's ".emacs" file and default.el > > > > ;; load *.el and *.elc in /usr/share/emacs/site-lisp/site-start.d on > > startup > > (mapc > > 'load > > (delete-dups > > (mapcar 'file-name-sans-extension > > (directory-files > > "/usr/share/emacs/site-lisp/site-start.d" t "\\.elc?\\ > > '")))) > > (setq source-directory "/usr/share/emacs/24.5/") > > Aha, so it loads elisp files from that "site-start.d" directory. I > wonder what files are placed there. Could you look and show their > contents please? > Yes $ ls /usr/share/emacs/site-lisp/site-start.d/ desktop-entry-mode-init.el git-init.el $ cat /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t) (add-to-list 'auto-mode-alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode)) $ cat /usr/share/emacs/site-lisp/site-start.d/git-init.el ;; Git VC backend (add-to-list 'vc-handled-backends 'GIT t) (autoload 'git-status "git" "GIT mode." t) (autoload 'git-blame-mode "git-blame" "Minor mode for incremental blame for Git." t) I was expecting something explaining the difference in the fotns sizes. But that must be somewhere else > > and the Guix Emacs has > > > > (require 'guix-emacs nil t) > > Right, this is used to find emacs packages in "~/.guix-profile". So, > for example, if you do "guix package -i magit", next time you run Guix's > Emacs, it will automatically find magit package, so you can use "M-x > magit-status" right away. > Ok, ok, I get it > > > OK, so Fedora's Emacs has a bigger font (19 against 13). > > > > You can use something like this to set the font and its size: > > > > (set-frame-font "DejaVu Sans Mono-15" nil t) > > > > you were spot on on this ! In fact evaluating this line made the Guix > > Emacs window exactly equal to the one of the Fedora Emacs ! > > OK, note that I used "Mono" font while you probably prefer just "DejaVu > Sans". > Note taken. Thanks > > > Also the Fedora Emacs keeps being a bit brighter > > You know, I have another thought about this problem. Perhaps you use > different versions of zenburn theme: like, for example, you installed > one using Fedora (which is loaded when you run Fedora's Emacs), and also > you installed another zenburn using Emacs package system (and it is > loaded by Guix's Emacs). Could you look at 'load-path' variable ("C-h v > load-path") and check if there are several ".../zenburn..." directories. > > Or better, look if zenburn is listed at "M-x list-load-path-shadows". > > Also check the value of 'custom-enabled-themes'. > For the Fedora Emacs No Emacs Lisp load-path shadowings were found For the Guix Emacs /home/catonano/.emacs.d/elpa/dash-20151216.1315/dash hides /home/catonano/.guix-profile/share/emacs/site-lisp/guix.d/dash-2.12.1/dash /home/catonano/.emacs.d/elpa/dash-20151216.1315/dash-autoloads hides /home/catonano/.guix-profile/share/emacs/site-lisp/guix.d/dash-2.12.1/dash-autoloads /home/catonano/.guix-profile/share/emacs/site-lisp/guix-emacs hides /gnu/store/95zc1fvm6dycmn0ahfcd61vq2yyr1b8v-emacs-24.5/share/emacs/24.5/site-lisp/guix-emacs 3 Emacs Lisp load-path shadowings were found For both Emacses "Its value is (zenburn) Original value was nil" Look, I installed zenburn with the Fedora Emacs packages machinery, before even attempting to install Guix It's in my .emacs.d folder and it's commong among the 2 Emacses Rather, I'd come up with this hypothesis The Fedora Emacs is buit against Gtk+ version 3.18.9 The Guix Emacs is built against Gtk+ version 3.18.2 So I read in the respective splash files Maybe the slight difference in versions might explain the difference in brightness ? > And if that's a mistery to you, go figure what it is to me ;-) > > He-he :-) > I have at least an hypothesis now ;-) --047d7bea3bac83c3230530ad613c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-04-17 10:23 GMT+02:00 Alex Kost <alezost@gmail.com>= :

[...]
> Yes, the Fedora Emacs has this site-start
>
> ;;; loaded before user's ".emacs" file and default.el >
> ;; load *.el and *.elc in /usr/share/emacs/site-lisp/site-start.d on > startup
> (mapc
> =C2=A0'load
> =C2=A0(delete-dups
> =C2=A0 (mapcar 'file-name-sans-extension
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (directory-file= s
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "/us= r/share/emacs/site-lisp/site-start.d" t "\\.elc?\\
> '"))))
> (setq source-directory "/usr/share/emacs/24.5/")

Aha, so it loads elisp files from that "site-start.d" dire= ctory.=C2=A0 I
wonder what files are placed there.=C2=A0 Could you look and show their
contents please?

Yes


$ ls /u= sr/share/emacs/site-lisp/site-start.d/
desktop-entry-mode-init.el=C2=A0 = git-init.el

$ cat /usr/share/emacs/site-lisp/site-start.d/desktop-en= try-mode-init.el
(autoload 'desktop-entry-mode "desktop-entry-= mode" "Desktop Entry mode" t)
(add-to-list 'auto-mode= -alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode))
=
=C2=A0
$ cat /usr/share/emacs/site-lisp/site-start.d/git-init= .el
;; Git VC backend
(add-to-list 'vc-handled-backends 'GIT= t)
(autoload 'git-status "git" "GIT mode." t)(autoload 'git-blame-mode "git-blame"
=C2=A0=C2=A0=C2=A0= =C2=A0 "Minor mode for incremental blame for Git." t)


=
I was expecting something explaining the difference in the fotns= sizes. But that must be somewhere else



> and the Guix Emacs has
>
> (require 'guix-emacs nil t)

Right, this is used to find emacs packages in "~/.guix-profile&= quot;.=C2=A0 So,
for example, if you do "guix package -i magit", next time you run= Guix's
Emacs, it will automatically find magit package, so you can use "M-x magit-status" right away.

Ok, ok, = I get it

=C2=A0

>=C2=A0 =C2=A0 =C2=A0OK, so Fedora's Emacs has a bigger font (19 aga= inst 13).
>
>=C2=A0 =C2=A0 =C2=A0You can use something like this to set the font and= its size:
>
>=C2=A0 =C2=A0 =C2=A0=C2=A0 (set-frame-font "DejaVu Sans Mono-15&qu= ot; nil t)
>
> you were spot on on this ! In fact evaluating this line made the Guix<= br> > Emacs window exactly equal to the one of the Fedora Emacs !

OK, note that I used "Mono" font while you probably prefer= just "DejaVu
Sans".

Note taken. Thanks

<= br>=C2=A0

> Also the Fedora Emacs keeps being a bit brighter

You know, I have another thought about this problem.=C2=A0 Perhaps y= ou use
different versions of zenburn theme: like, for example, you installed
one using Fedora (which is loaded when you run Fedora's Emacs), and als= o
you installed another zenburn using Emacs package system (and it is
loaded by Guix's Emacs).=C2=A0 Could you look at 'load-path' va= riable ("C-h v
load-path") and check if there are several ".../zenburn..." = directories.

Or better, look if zenburn is listed at "M-x list-load-path-shadows&qu= ot;.

Also check the value of 'custom-enabled-themes'.

For the Fedora Emacs
No Emacs Lisp load-path shadowing= s were found


=C2=A0For the Guix Emacs

/home/ca= tonano/.emacs.d/elpa/dash-20151216.1315/dash hides /home/catonano/.guix-pro= file/share/emacs/site-lisp/guix.d/dash-2.12.1/dash
/home/catonano/.emacs= .d/elpa/dash-20151216.1315/dash-autoloads hides /home/catonano/.guix-profil= e/share/emacs/site-lisp/guix.d/dash-2.12.1/dash-autoloads
/home/catonano= /.guix-profile/share/emacs/site-lisp/guix-emacs hides /gnu/store/95zc1fvm6d= ycmn0ahfcd61vq2yyr1b8v-emacs-24.5/share/emacs/24.5/site-lisp/guix-emacs
=
3 Emacs Lisp load-path shadowings were found


For both Emacse= s
"Its value is (zenburn)
Original value was nil"

Look, I installed zenburn with the Fedora Emacs packages machi= nery, before even attempting to install Guix

It's in = my .emacs.d folder and it's commong among the 2 Emacses

Rather, I'd come up with this hypothesis

The Fedor= a Emacs is buit against Gtk+ version 3.18.9
The Guix Emacs is= built against Gtk+ version 3.18.2

So I read in the respe= ctive splash files

Maybe the slight difference= in versions might explain the difference in brightness ?
> And if that's a mistery t= o you, go figure what it is to me ;-)

He-he :-)

I have at least an hyp= othesis now ;-)

--047d7bea3bac83c3230530ad613c--