aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--git-auto-commit-mode.el12
2 files changed, 12 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d70f9d8..6ca2972 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@
- Add README and NEWS files.
+ - Use Emacs' Customize interface for user options.
+
* v4.1
- Update package URL to new homepage.
diff --git a/git-auto-commit-mode.el b/git-auto-commit-mode.el
index 96a082d..355cbcf 100644
--- a/git-auto-commit-mode.el
+++ b/git-auto-commit-mode.el
@@ -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)