aboutsummaryrefslogtreecommitdiff
path: root/bard-elisp/bard-calendar.el
diff options
context:
space:
mode:
authorBardofSprites <[email protected]>2025-12-27 15:57:53 -0500
committerBardofSprites <[email protected]>2025-12-27 15:57:53 -0500
commite4a0853b306c054e5554f866d731020a7a6f5206 (patch)
treeb95113bbc576c23def3a1d75410b3d0d3ca16905 /bard-elisp/bard-calendar.el
parent365b3cd445b56e55014f2f3b5a14532228b3ba5a (diff)
MAJOR formatting and documentation
Diffstat (limited to 'bard-elisp/bard-calendar.el')
-rw-r--r--bard-elisp/bard-calendar.el35
1 files changed, 17 insertions, 18 deletions
diff --git a/bard-elisp/bard-calendar.el b/bard-elisp/bard-calendar.el
index 7c2efc6..0fd9e3a 100644
--- a/bard-elisp/bard-calendar.el
+++ b/bard-elisp/bard-calendar.el
@@ -1,7 +1,5 @@
(require 'org)
-;; Org Clock
-
(defun bard/auto-clock-in ()
"Automatically clock in when task marked in progress (INPROG),
and start study session."
@@ -25,22 +23,25 @@
(pop-to-buffer-same-window "todo.org")))))))
(defun bard/org-clock-report ()
- (interactive)
- (bard/new-org-buffer)
- (org-clock-report))
+ "Generate an org clock report in a separate org buffer."
+ (interactive)
+ (bard/new-org-buffer)
+ (org-clock-report))
-(defun bard/org-clock-update-mode-line ()
- (interactive)
- (setq org-mode-line-string nil)
- (force-mode-line-update))
+ (defun bard/org-clock-update-mode-line ()
+ "Update the modeline, not sure why I have this."
+ (interactive)
+ (setq org-mode-line-string nil)
+ (force-mode-line-update))
-(defun bard/org-clock-task-string ()
- "Return a simplified org clock task string."
- (if (and (boundp 'org-mode-line-string)
- (not (string-equal "" org-mode-line-string))
- org-mode-line-string)
- (substring-no-properties org-mode-line-string)
- "No task clocked in"))
+ (defun bard/org-clock-task-string ()
+ "Return a simplified org clock task string.
+Used in FVWM3 configuration to show clocked task in FVWMbuttons."
+ (if (and (boundp 'org-mode-line-string)
+ (not (string-equal "" org-mode-line-string))
+ org-mode-line-string)
+ (substring-no-properties org-mode-line-string)
+ "No task clocked in"))
(defun bard/open-calendar ()
"Opens calendar as only window"
@@ -48,8 +49,6 @@
(calendar)
(delete-other-windows))
-;; Org Agenda
-
(defun bard/choose-agenda ()
"For viewing my custom agenda"
(interactive)