mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: emacs-yasnippet-snippets: Resolve void function error.
Attempting to use the python-mode snippets shipped with this package would result in a '(void-function yasnippet-snippets--fixed-indent)' error being raised (failing the initialization of other packages such as Elpy). The following change fixes this by not only installing the snippets but also the accompanying Elisp library that allows automatic discovery of the snippets. * gnu/packages/emacs-xyz.scm (emacs-yasnippet-snippets)[build-system]: Switch to emacs-build-system. [arguments]: Remove the #:module and #:builder arguments. Add the #:include argument. [description]: Adjust to reflect that it is no longer necessary to manually add the snippets to the yas-snippet-dirs variable.
This commit is contained in:
parent
6cf7b5e2ad
commit
2e9b7a207d
1 changed files with 8 additions and 18 deletions
|
@ -10867,27 +10867,17 @@ type an abbreviation and automatically expand it into function templates.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "18pcnjnqvcky6i49p38vy3ms5xiisn27vy47pc3vsgr3r2n87mqb"))))
|
(base32 "18pcnjnqvcky6i49p38vy3ms5xiisn27vy47pc3vsgr3r2n87mqb"))))
|
||||||
(build-system trivial-build-system)
|
(build-system emacs-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:include (cons* "^snippets\\/" %default-include)))
|
||||||
#:builder
|
(propagated-inputs
|
||||||
(begin
|
`(("emacs-s" ,emacs-s) ;for snippets/rjsx-mode/.yas-setup.el
|
||||||
(use-modules (guix build utils))
|
("emacs-yasnippet" ,emacs-yasnippet)))
|
||||||
(let* ((source (assoc-ref %build-inputs "source"))
|
|
||||||
(out (assoc-ref %outputs "out"))
|
|
||||||
(snippet-dir
|
|
||||||
(string-append out "/share/emacs/yasnippet-snippets/")))
|
|
||||||
(with-directory-excursion source
|
|
||||||
(mkdir-p snippet-dir)
|
|
||||||
(copy-recursively "snippets" snippet-dir)))
|
|
||||||
#t)))
|
|
||||||
(home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
|
(home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
|
||||||
(synopsis "Collection of YASnippet snippets for many languages")
|
(synopsis "Collection of YASnippet snippets for many languages")
|
||||||
(description
|
(description "This package provides an extensive collection of YASnippet
|
||||||
"Provides Andrea Crotti's collection of YASnippet snippets. After installation,
|
snippets. When this package is installed, the extra snippets it provides are
|
||||||
the snippets will be in \"~/.guix-profile/share/emacs/yasnippet-snippets/\".
|
automatically made available to YASnippet.")
|
||||||
To make YASnippet aware of these snippets, add the above directory to
|
|
||||||
@code{yas-snippet-dirs}.")
|
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-helm-c-yasnippet
|
(define-public emacs-helm-c-yasnippet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue