From 3b04c88eb6eafe7befbda6714c5f31b6c40fde09 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 9 Apr 2013 02:29:00 +0200 Subject: Use defcustom for gac-automatically-push-p --- git-auto-commit-mode.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'git-auto-commit-mode.el') 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) -- cgit v1.2.3-54-g00ecf