guix-popup.el 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ;;; guix-popup.el --- Popup windows library
  2. ;; Copyright © 2015 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 provides `guix-define-popup' macro which is just an alias
  18. ;; to `magit-define-popup'. According to the manual:
  19. ;;
  20. ;; (info "(magit-popup) Defining prefix and suffix commands")
  21. ;;
  22. ;; `magit-popup' library will eventually be superseded by a more general
  23. ;; library.
  24. ;;; Code:
  25. (require 'magit-popup)
  26. (defalias 'guix-define-popup 'magit-define-popup)
  27. (defvar guix-popup-font-lock-keywords
  28. (eval-when-compile
  29. `((,(rx "("
  30. (group "guix-define-popup")
  31. symbol-end
  32. (zero-or-more blank)
  33. (zero-or-one
  34. (group (one-or-more (or (syntax word) (syntax symbol))))))
  35. (1 font-lock-keyword-face)
  36. (2 font-lock-function-name-face nil t)))))
  37. (font-lock-add-keywords 'emacs-lisp-mode guix-popup-font-lock-keywords)
  38. (provide 'guix-popup)
  39. ;;; guix-popup.el ends here