Skip to content

Commit

Permalink
add variable for org agenda item foreground color
Browse files Browse the repository at this point in the history
- add variable cfw:org-face-agenda-item-foreground-color
  • Loading branch information
skyer9 committed Sep 8, 2015
1 parent fc4a983 commit 240b4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calfw-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ For example,
v m | cfw:change-view-month
------------------------------------------------")

(defvar cfw:org-face-agenda-item-foreground-color "Seagreen4"
"Variable for org agenda item foreground color.")

(defun cfw:org-collect-schedules-period (begin end)
"[internal] Return org schedule items between BEGIN and END."
(let ((org-agenda-prefix-format " ")
Expand Down Expand Up @@ -457,7 +460,7 @@ TEXT1 < TEXT2. This function makes no-time items in front of timed-items."
"Create org-agenda source."
(make-cfw:source
:name "org-agenda"
:color (or color "Seagreen4")
:color (or color cfw:org-face-agenda-item-foreground-color)
:data 'cfw:org-schedule-period-to-calendar))

(defun cfw:open-org-calendar ()
Expand Down

0 comments on commit 240b4cb

Please sign in to comment.