From cb798a6b7478e98028b31962141041b70adc0c06 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 17 Jul 2019 22:10:09 -0400 Subject: [PATCH] Add function/binding for updating SRCINFO to pkgbuild-mode --- .emacs.d/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 97ea2dc..a7c38e4 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -727,10 +727,14 @@ :hook (python-mode . (lambda ()(setq-local helm-dash-docsets '("Python 3"))))) (use-package pkgbuild-mode + :bind (:map pkgbuild-mode-map ("C-c i" . pkgbuild-printsrcinfo)) :config (setq pkgbuild-user-full-name "Adam Goldsmith" pkgbuild-user-mail-address "contact@adamgoldsmith.name" - pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf")) + pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf") + (defun pkgbuild-printsrcinfo () + (interactive) + (shell-command "makepkg --printsrcinfo > .SRCINFO"))) (use-package qml-mode :mode "\\.qml\\'"