From 240990939285d1f52391c4dafdc6f0787bc6a056 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 6 Oct 2021 11:16:32 -0500 Subject: Stub a function --- lisp/chd.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp/chd.el') diff --git a/lisp/chd.el b/lisp/chd.el index 697c134..f7b5dbb 100644 --- a/lisp/chd.el +++ b/lisp/chd.el @@ -40,10 +40,12 @@ (org-back-to-heading) (org-open-at-point))) +(defun chd/click-bits (date) + "Create a new Click Bits org file, or edit the one for DATE." + (error "not implemented")) + ;;; NOTES ;; org-protocol: https://orgmode.org/worg/org-contrib/org-protocol.html ;; the bit i wanna pull from TaskIQ: 'document.getElementById("preview") - - (provide 'chd) ;;; chd.el ends here -- cgit 1.4.1-21-gabe81 From 95e14142707a2122d6efa1dff70805a7e4c962fb Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 6 Oct 2021 17:29:46 -0500 Subject: Stub a little further with chd/click-bits --- lisp/chd.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/chd.el') diff --git a/lisp/chd.el b/lisp/chd.el index f7b5dbb..b301c8d 100644 --- a/lisp/chd.el +++ b/lisp/chd.el @@ -42,7 +42,11 @@ (defun chd/click-bits (date) "Create a new Click Bits org file, or edit the one for DATE." - (error "not implemented")) + (interactive (list (progn + (require 'org) + (org-read-date)))) + ;; TODO: implement actual logic. + (message "%s" date)) ;;; NOTES ;; org-protocol: https://orgmode.org/worg/org-contrib/org-protocol.html -- cgit 1.4.1-21-gabe81