Use defcustom for gac-automatically-push-p
This commit is contained in:
parent
82e65c6d50
commit
3b04c88eb6
2 changed files with 12 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
- Add README and NEWS files.
|
- Add README and NEWS files.
|
||||||
|
|
||||||
|
- Use Emacs' Customize interface for user options.
|
||||||
|
|
||||||
* v4.1
|
* v4.1
|
||||||
|
|
||||||
- Update package URL to new homepage.
|
- Update package URL to new homepage.
|
||||||
|
|
|
@ -31,9 +31,17 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; 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
|
"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)
|
(make-variable-buffer-local 'gac-automatically-push-p)
|
||||||
|
|
||||||
(defun gac-relative-file-name (filename)
|
(defun gac-relative-file-name (filename)
|
||||||
|
|
Loading…
Reference in a new issue