2017-12-15 23:10:54 +01:00
|
|
|
# -*- mode: snippet -*-
|
|
|
|
# name: guix-commit-message-add-package
|
|
|
|
# key: add
|
|
|
|
# condition: git-commit-mode
|
|
|
|
# --
|
2019-03-08 00:17:30 +01:00
|
|
|
gnu: Add ${1:`(with-temp-buffer
|
|
|
|
(magit-git-wash #'magit-diff-wash-diffs
|
|
|
|
"diff" "--staged")
|
|
|
|
(beginning-of-buffer)
|
|
|
|
(when (search-forward "(define-public " nil 'noerror)
|
|
|
|
(thing-at-point 'sexp 'no-properties)))`}.
|
2017-12-15 23:10:54 +01:00
|
|
|
|
|
|
|
* `(car (magit-staged-files))` ($1): New variable.
|