mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Advice this
This commit is contained in:
parent
0b94d23a2a
commit
a4f9dd806c
1 changed files with 6 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ https://github.com/org-trello/org-trello/issues/258
|
|||
#+end_src
|
||||
* org clock added new time prompt and new away prompt
|
||||
#+begin_src emacs-lisp
|
||||
(defun org-clock-resolve (clock &optional prompt-fn last-valid fail-quietly)
|
||||
(defun my/org-clock-resolve (clock &optional prompt-fn last-valid fail-quietly)
|
||||
"Resolve an open Org clock.
|
||||
An open clock was found, with `dangling' possibly being non-nil.
|
||||
If this function was invoked with a prefix argument, non-dangling
|
||||
|
|
@ -472,4 +472,8 @@ https://github.com/org-trello/org-trello/issues/258
|
|||
(and start-over
|
||||
(not (memq ch '(?K ?G ?S ?C))))
|
||||
fail-quietly)))))
|
||||
|
||||
(advice-add #'org-clock-resolve
|
||||
:override
|
||||
#'my/org-clock-resolve)
|
||||
#+end_src
|
||||
|
|
|
|||
Loading…
Reference in a new issue