gnu: emacs-polymode: Fix byte compilation.

* gnu/packages/emacs.scm (emacs-polymode)[arguments]: Add modes subdirectory
to #:include. Add add-modes-subdir-to-load-path phase.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
Maxim Cournoyer 2018-03-19 21:55:27 -04:00 committed by Arun Isaac
parent fee23c17a9
commit 74b4d7a142
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3
1 changed files with 9 additions and 0 deletions

View File

@ -7041,6 +7041,15 @@ contexts.
(base32 (base32
"057cybkq3cy07n5s332k071sjiky3mziy003lza4rh75mgqkwhmh")))) "057cybkq3cy07n5s332k071sjiky3mziy003lza4rh75mgqkwhmh"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments
`(#:include (cons* "^modes/.*\\.el$" %default-include)
#:phases
(modify-phases %standard-phases
(add-after 'set-emacs-load-path 'add-modes-subdir-to-load-path
(lambda _
(setenv "EMACSLOADPATH"
(string-append (getenv "EMACSLOADPATH")
":" (getcwd) "/modes" ":")))))))
(home-page "https://github.com/vspinu/polymode") (home-page "https://github.com/vspinu/polymode")
(synopsis "Framework for multiple Emacs modes based on indirect buffers") (synopsis "Framework for multiple Emacs modes based on indirect buffers")
(description "Polymode is an Emacs package that offers generic support (description "Polymode is an Emacs package that offers generic support