summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-04-20 21:57:54 -0400
committerKyle Meyer <kyle@kyleam.com>2017-04-20 21:57:54 -0400
commit7990b059ecc9149d529dd3998bdb8401e050d9ff (patch)
treebc715cc3ed049e1fd5528ae66fed09b6fca11f44
parentb2183529093323c1bcee068c04304407b9538d96 (diff)
downloademacs.d-7990b059ecc9149d529dd3998bdb8401e050d9ff.tar.gz
org-board: Confirm before archiving
-rw-r--r--init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.el b/init.el
index 33218b8..0a2a06b 100644
--- a/init.el
+++ b/init.el
@@ -303,6 +303,15 @@
:init
(put 'org-attach-directory 'safe-local-variable #'stringp))
+(use-package org-board
+ :defer t
+ :config
+ (advice-add 'org-board-archive :before
+ (lambda (&rest _)
+ (unless (yes-or-no-p "Archive entry? ")
+ (user-error "Archiving aborted")))
+ '((name . "org-board-archive-confirm"))))
+
(use-package km-org
:defer t
:init