From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Emacs load-path random order Date: Sun, 22 Apr 2018 11:57:03 +0530 Message-ID: <87r2n7iwnc.fsf@gmail.com> References: <87vaclb4vx.fsf@gmail.com> <87lgdguz9x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fA8St-0002Re-5V for help-guix@gnu.org; Sun, 22 Apr 2018 02:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fA8Sp-00050o-VX for help-guix@gnu.org; Sun, 22 Apr 2018 02:27:11 -0400 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:43418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fA8Sp-00050I-OY for help-guix@gnu.org; Sun, 22 Apr 2018 02:27:07 -0400 Received: by mail-pf0-x229.google.com with SMTP id j11so6660323pff.10 for ; Sat, 21 Apr 2018 23:27:07 -0700 (PDT) In-reply-to: <87lgdguz9x.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: Chris Marusich Cc: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Chris Marusich writes: > How are you starting Emacs? From the command line? From the GNOME > Activities Overview [1]? Some other method? Are you doing anything > "strange" to modify your environment (e.g., running a custom > ~/.xsession)? It matters because the way in which you start a program > can influence the environment in which the program runs, which can in > turn influence the load path of programs like Emacs. I don't use GNOME, I use EXWM[1] (the Emacs X window manager) which I start from a custom ~/.xsession with: emacs --daemon -f exwm-enable exec emacsclient -c Other than that, I add my local site-lisp to the beginning of my ~/.emacs.d/init.el: =2D-8<---------------cut here---------------start------------->8--- ;;; Site Lisp folder for local packages and development. ;; We need to roll it out manually since we want it first in the `load-path= ', ;; while `normal-top-level-add-subdirs-to-load-path' appends it to the very= end. (defun ambrevar/package-refresh-load-path (path) "Add every non-hidden sub-folder of PATH to `load-path'." (when (file-directory-p path) (dolist (dir (directory-files path t "^[^\\.]")) (when (file-directory-p dir) (setq load-path (add-to-list 'load-path dir)) (dolist (subdir (directory-files dir t "^[^\\.]")) (when (file-directory-p subdir) (setq load-path (add-to-list 'load-path subdir)))))))) (let ((site-lisp (expand-file-name "site-lisp/" "~/.local/share/emacs/"))) (add-to-list 'load-path site-lisp) (ambrevar/package-refresh-load-path site-lisp)) =2D-8<---------------cut here---------------end--------------->8--- See the rest of my dotfiles there: https://github.com/Ambrevar/dotfiles [1] https://github.com/ch11ng/exwm =2D-=20 Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrcKzcACgkQm9z0l6S7 zH8A4wf/Q6mIopItYAWIzxB7v5FPjSNAj7Yu+aMedVZTMa+Aj5pdLaOxoxf1HPq7 FgI1lLhY5m4A10OjAE8WPCXwUlIk7KA4GNHb+VPS0B88KRZI/CcvhOhxuPnakBLD w3e5/StHWaSWKOFb7YAGHHbTQbvyCeJp44iqaSP3TwB/Q59WFRJdhD3zOmh7P4BW hMbIT16xW+v1T9PQ5/aw0rNlM17WhBYbVpPbJLiHh0SAxvozNv6H57g2cM74jsPi IJCn+nYvx6cPMSTzDVaPICSKwy6PILDkGH0JykpJwG4Zje/Bojna5HiH/+i00+dt tqEyien1KyrbJvg7WuQa15jkAGXUtg== =1PYO -----END PGP SIGNATURE----- --=-=-=--