From a6b6e0fa183be381463e2b44ef128db1b6c4234b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 17 Nov 2020 18:27:41 -0800 Subject: [PATCH] Add note about how to set the customization options --- README.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.org b/README.org index 3ea46ae..0c78480 100644 --- a/README.org +++ b/README.org @@ -114,3 +114,23 @@ A boolean value indicating whether to display the commit summary message, which is usually displayed in the minibuffer. The default is ~nil~, meaning that the summary would be displayed on every commit. + + + To set any of these options, you can: + + - Use the customization interface (~M-x customize-group git-auto-commit-mode~). + - Set the defaults in your Emacs initialization file using: + #+begin_src emacs-lisp + (setq-default gac-ask-for-summary-p t) + #+end_src + - Set values in a hook: + #+begin_src emacs-lisp + (defun set-my-settings () + (setq gac-automatically-push-p t)) + + (add-hook 'org-mode-hook 'set-my-settings) + #+end_src + - Set values in a ~.dir-locals.el~ (see [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html#Directory-Variables][Per-Directory Local Variables]]): + #+begin_src emacs-lisp + ((nil . ((gac-shell-and . " ; and ")))) + #+end_src