Use defcustom for gac-automatically-push-p

This commit is contained in:
Tom Willemsen 2013-04-09 02:29:00 +02:00
parent 82e65c6d50
commit 3b04c88eb6
2 changed files with 12 additions and 2 deletions

2
NEWS
View file

@ -4,6 +4,8 @@
- Add README and NEWS files.
- Use Emacs' Customize interface for user options.
* v4.1
- Update package URL to new homepage.

View file

@ -31,9 +31,17 @@
;;; Code:
(defvar gac-automatically-push-p nil
(defgroup git-auto-commit-mode nil
"Customization options for `git-auto-commit-mode'."
:group 'external)
(defcustom gac-automatically-push-p nil
"Control whether or not `git-auto-commit-mode' should also
automatically push the changes.")
automatically push the changes committed after each save."
:tag "Automatically push"
:group 'git-auto-commit-mode
:type 'boolean
:risky t)
(make-variable-buffer-local 'gac-automatically-push-p)
(defun gac-relative-file-name (filename)