guix-default-config.el 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ;;; guix-default-config.el --- Default values for configuration variables
  2. ;; Copyright © 2016 Alex Kost <alezost@gmail.com>
  3. ;; This file is part of Emacs-Guix.
  4. ;; Emacs-Guix is free software; you can redistribute it and/or modify
  5. ;; it under the terms of the GNU General Public License as published by
  6. ;; the Free Software Foundation, either version 3 of the License, or
  7. ;; (at your option) any later version.
  8. ;;
  9. ;; Emacs-Guix is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;;
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with Emacs-Guix. If not, see <http://www.gnu.org/licenses/>.
  16. ;;; Commentary:
  17. ;; This file is a "companion" of "guix-build-config.el". It is used
  18. ;; when Emacs-Guix wasn't build with .configure/make, and provides some
  19. ;; sensible defaults for the according `guix-config-...' variables. See
  20. ;; also "guix-config.el".
  21. ;;; Code:
  22. (defconst guix-config-name "Emacs-Guix"
  23. "Emacs-Guix full name.")
  24. (declare-function lm-header "lisp-mnt" (header))
  25. (defconst guix-config-version
  26. ;; Find version in "guix.el".
  27. (let ((guix.el (expand-file-name "guix.el"
  28. (file-name-directory load-file-name))))
  29. (or (and (file-exists-p guix.el)
  30. (require 'lisp-mnt nil t)
  31. (with-temp-buffer
  32. (insert-file-contents-literally guix.el)
  33. (lm-header "version")))
  34. "<unknown version>"))
  35. "Emacs-Guix version.")
  36. (defconst guix-config-image-directory nil
  37. "Directory with image files for Emacs-Guix.")
  38. (defconst guix-config-scheme-directory nil
  39. "Directory with Scheme files for Emacs-Guix.")
  40. (defconst guix-config-scheme-compiled-directory nil
  41. "Directory with compiled Scheme (*.go) files for Emacs-Guix.")
  42. (defconst guix-config-guix-scheme-directory nil
  43. "Directory with Guix modules.")
  44. (defconst guix-config-guix-scheme-compiled-directory nil
  45. "Directory with Guix compiled (*.go) files.")
  46. (defconst guix-config-guile-program nil
  47. "Name of the 'guile' executable defined at configure time.")
  48. (provide 'guix-default-config)
  49. ;;; guix-default-config.el ends here