Skip to content
Snippets Groups Projects
Commit 056b5cef authored by Alex Kost's avatar Alex Kost
Browse files

emacs: Add 'guix-lint-checker-names'.

* emacs/guix-main.scm: Use (guix scripts lint) module.
  (lint-checker-names): New procedure.
* emacs/guix-base.el (guix-lint-checker-names): New function.
parent 521a11e0
No related branches found
No related tags found
No related merge requests found
;;; guix-base.el --- Common definitions -*- lexical-binding: t -*- ;;; guix-base.el --- Common definitions -*- lexical-binding: t -*-
;; Copyright © 2014 Alex Kost <alezost@gmail.com> ;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com>
;; This file is part of GNU Guix. ;; This file is part of GNU Guix.
...@@ -180,6 +180,13 @@ If PATH is relative, it is considered to be relative to ...@@ -180,6 +180,13 @@ If PATH is relative, it is considered to be relative to
(guix-find-location loc) (guix-find-location loc)
(message "Couldn't find package location.")))) (message "Couldn't find package location."))))
;;; Receivable lists of packages, lint checkers, etc.
(guix-memoized-defun guix-lint-checker-names ()
"Return a list of names of available lint checkers."
(guix-eval-read (guix-make-guile-expression 'lint-checker-names)))
;;; Buffers and auto updating. ;;; Buffers and auto updating.
......
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Alex Kost <alezost@gmail.com> ;;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
(guix licenses) (guix licenses)
(guix utils) (guix utils)
(guix ui) (guix ui)
(guix scripts lint)
(guix scripts package) (guix scripts package)
(guix scripts pull) (guix scripts pull)
(gnu packages)) (gnu packages))
...@@ -927,3 +928,12 @@ (define* (package-source-build-derivation package-id #:key dry-run? ...@@ -927,3 +928,12 @@ (define* (package-source-build-derivation package-id #:key dry-run?
(build-derivations store derivations)) (build-derivations store derivations))
(format #t "The source store path: ~a~%" (format #t "The source store path: ~a~%"
(package-source-derivation->store-path derivation)))))) (package-source-derivation->store-path derivation))))))
;;; Lists of packages, lint checkers, etc.
(define (lint-checker-names)
"Return a list of names of available lint checkers."
(map (lambda (checker)
(symbol->string (lint-checker-name checker)))
%checkers))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment