mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build: emacs-utils: Add emacs-makeinfo.
* guix/build/emacs-utils.scm (emacs-makeinfo): New variable. * gnu/packages/emacs-xyz.scm (emacs-show-font, emacs-mct, emacs-corfu) (emacs-cape, emacs-embark, emacs-orderless, emacs-consult, emacs-marginalia) (emacs-logos, emacs-tmr, emacs-beframe, emacs-tempel, emacs-lin, emacs-pulsar) (emacs-dired-preview, emacs-modus-themes, emacs-org-glossary, emacs-vertico) (emacs-org-margin, emacs-osm)[#:phases]<makeinfo>: Use it. Move before ‘install’ if it was previously after ‘install’.
This commit is contained in:
parent
fcd191dfc0
commit
6c41e4d180
2 changed files with 42 additions and 137 deletions
|
@ -36,6 +36,7 @@
|
|||
emacs-batch-error?
|
||||
emacs-batch-error-message
|
||||
|
||||
emacs-makeinfo
|
||||
emacs-generate-autoloads
|
||||
emacs-byte-compile-directory
|
||||
emacs-compile-directory
|
||||
|
@ -107,6 +108,13 @@ If NATIVE?, only disable native compilation."
|
|||
(message (read-string (car error-pipe)))))))
|
||||
output))
|
||||
|
||||
(define* (emacs-makeinfo #:optional
|
||||
(file "README.org")
|
||||
(expr '(progn
|
||||
(require 'ox-texinfo)
|
||||
(org-texinfo-export-to-info))))
|
||||
(emacs-batch-edit-file file expr))
|
||||
|
||||
(define (emacs-generate-autoloads name directory)
|
||||
"Generate autoloads for Emacs package NAME placed in DIRECTORY."
|
||||
(let* ((file (string-append directory "/" name "-autoloads.el"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue