From 6cad41c84d12eede3a602e32cb08002dc36e6412 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Wed, 21 Sep 2022 18:51:20 +0200 Subject: Add informative messages --- 2022/organizers-notebook.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '2022') diff --git a/2022/organizers-notebook.org b/2022/organizers-notebook.org index f6548fe6..52be7dfd 100644 --- a/2022/organizers-notebook.org +++ b/2022/organizers-notebook.org @@ -26,12 +26,16 @@ Meant to be used with `after-save-hook'." (org-md-export-to-markdown) (org-babel-tangle)) -(add-hook 'after-save-hook #'emacsconf-export-markdown-on-save nil t) +(when (memq #'emacsconf-export-markdown-on-save after-save-hook) + (message "Hook is active")) #+end_src Remove the hook: #+begin_src emacs-lisp :eval query (remove-hook 'after-save-hook #'emacsconf-export-markdown-on-save t) + +(unless (memq #'emacsconf-export-markdown-on-save after-save-hook) + (message "Hook is no longer active")) #+end_src * Current tasks / status -- cgit v1.2.3