Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add a variable to control whether face-today is applied #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion calfw.el
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ VIEW is a symbol of the view type."
((eq 'day view) 'cfw:view-day)
(t (error "Not found such view : %s" view))))

(defvar cfw:highlight-today t
"Variable to control whether today is rendered differently than other days.")

(defun cfw:cp-update (component)
"[internal] Clear and re-draw the component content."
(let* ((buf (cfw:cp-get-buffer component))
Expand All @@ -1028,7 +1031,8 @@ VIEW is a symbol of the view type."
(funcall (cfw:cp-dispatch-view-impl
(cfw:component-view component))
component)))
(cfw:dest-ol-today-set dest)
(when cfw:highlight-today
(cfw:dest-ol-today-set dest))
(cfw:cp-set-selected-date
component (cfw:component-selected component))
(cfw:dest-after-update dest)
Expand Down