aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-06-23 11:38:11 +0200
committerGravatar Tom Willemsen2012-06-23 11:38:11 +0200
commit360d129a0c1ac0f190f41537db7a6d3d5f510954 (patch)
tree8c8b3cd8a468bf2c8fb5a5ffb3b94badbccb32a4
parent791c8e0b7e13f9f5ba11b2f44d7301a3498ab41b (diff)
downloadgit-auto-commit-mode-360d129a0c1ac0f190f41537db7a6d3d5f510954.tar.gz
git-auto-commit-mode-360d129a0c1ac0f190f41537db7a6d3d5f510954.zip
Always make gac-automatically-push buffer local.
-rw-r--r--git-auto-commit-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-auto-commit-mode.el b/git-auto-commit-mode.el
index 45f5c82..70ee0ca 100644
--- a/git-auto-commit-mode.el
+++ b/git-auto-commit-mode.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemsen <tom@ryuslash.org>
;; Created: Jan 9, 2012
-;; Version: 3
+;; Version: 4
;; Keywords: vc
;; URL: http://ryuslash.org/git-auto-commit-mode/
@@ -37,11 +37,14 @@
;; 3 - Shows the status when push finishes.
+;; 4 - Make `gac-automatically-push' buffer local, always.
+
;;; Code:
(defvar gac-automatically-push nil
"Control whether or not `git-auto-commit-mode' should also
automatically push the changes.")
+(make-variable-buffer-local 'gac-automatically-push)
(defun gac-relative-file-name (filename)
"Find the path to the filename relative to the git directory"