diff options
author | Bastien Guerry <bzg@altern.org> | 2012-09-24 07:07:43 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-09-24 07:07:43 +0200 |
commit | ec9f52d185753a943a1a56e6c5155571fce9307a (patch) | |
tree | c59d994eafb3e8984185a20780d9ef7336059adb | |
parent | 5a297114fabfc06effcec63e767ff4e9d7b46cb9 (diff) | |
download | org-mode-ec9f52d185753a943a1a56e6c5155571fce9307a.tar.gz |
org-capture.el (org-capture-mode): Fix bug: don't run the mode's hook twice
* org-capture.el (org-capture-mode): Fix bug: don't run the
mode's hook twice.
Thanks to Kalev Takkis for reporting this.
-rw-r--r-- | lisp/org-capture.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 49ab60c..e635a42 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -418,12 +418,13 @@ for a capture buffer.") "Hook for the minor `org-capture-mode'.") (define-minor-mode org-capture-mode - "Minor mode for special key bindings in a capture buffer." + "Minor mode for special key bindings in a capture buffer. + +Turning on this mode runs the normal hook `org-capture-mode-hook'." nil " Rem" org-capture-mode-map (org-set-local 'header-line-format - "Capture buffer. Finish `C-c C-c', refile `C-c C-w', abort `C-c C-k'.") - (run-hooks 'org-capture-mode-hook)) + "Capture buffer. Finish `C-c C-c', refile `C-c C-w', abort `C-c C-k'.")) (define-key org-capture-mode-map "\C-c\C-c" 'org-capture-finalize) (define-key org-capture-mode-map "\C-c\C-k" 'org-capture-kill) (define-key org-capture-mode-map "\C-c\C-w" 'org-capture-refile) |