summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2017-06-03 12:56:36 -0700
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-11-18 14:34:40 +0900
commit215a45d9b8e00cfcc3bf613de61c5d8ee304b512 (patch)
tree0572476893db1369ecb40e1013a63ba3f5aa80ce /gnu/packages
parent67ed5442127e5baf2a7caba7a112c9639feecee3 (diff)
downloadguix-215a45d9b8e00cfcc3bf613de61c5d8ee304b512.tar.gz
gnu: emacs: Locate Elisp libraries via EMACSLOADPATH.
* gnu/packages/emacs.scm (emacs): Add a search path specification for
EMACSLOADPATH.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 6c6f0e4567..16f9af0a0a 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2016 David Thompson <dthompson2@worcester.edu>
 ;;; Copyright © 2016 ng0 <ng0@n0.is>
 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
-;;; Copyright © 2017 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2017, 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
 ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
@@ -185,6 +185,13 @@
 
     (native-search-paths
      (list (search-path-specification
+            (variable "EMACSLOADPATH")
+            ;; The versioned entries are for the Emacs' builtin libraries.
+            (files (list (string-append "share/emacs/" version "/site-lisp")
+                         (string-append "share/emacs/" version "/lisp")
+                         "share/emacs/site-lisp"))
+            (file-pattern ".*"))        ;recursively add any sub directory
+           (search-path-specification
             (variable "INFOPATH")
             (files '("share/info")))))