[Top][All Lists]

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

Re: guix installed Emacs

From: Catonano
Subject: Re: guix installed Emacs
Date: Sun, 17 Apr 2016 14:28:26 +0200

2016-04-17 10:23 GMT+02:00 Alex Kost <address@hidden>:

> 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?


$ 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

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 ;-)

reply via email to

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