From 0e6f7facde00c2f2701645fc4673f9bf7872aaf0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 11 Oct 2020 21:00:40 +0200 Subject: Add calfw calendar setup Now this looks nice. Weirdly I did not manage to get face settings from inside my custom theme to apply, they were ignored in favour of the calfw defaults. --- gui/conf/init.el | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/gui/conf/init.el b/gui/conf/init.el index f4dfa81..17405fe 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -209,6 +209,19 @@ "* %:description\n%:link %T" :immediate-finish t))) +(use-package calfw + :ensure t + :custom + (calendar-holidays nil) + (cfw:org-face-agenda-item-foreground-color "#F2F2F2") + (cfw:face-item-separator-color "#080808") + (cfw:render-line-breaker 'cfw:render-line-breaker-wordwrap)) + +(use-package calfw-org + :ensure t + :config + (evil-leader/set-key "oc" 'cfw:open-org-calendar)) + (use-package org-fragtog :ensure t :config @@ -223,7 +236,27 @@ '(org-level-2 ((t (:family "Source Serif Pro")))) '(org-level-3 ((t (:family "Source Serif Pro")))) '(org-level-4 ((t (:family "Source Serif Pro")))) - '(org-document-title ((t (:family "Source Serif Pro"))))) + '(org-document-title ((t (:family "Source Serif Pro")))) + + ;; calfw + '(cfw:face-title ((t (:inherit variable-pitch :family "Source Serif Pro" :foreground "#AADB0F" :height 2.0)))) + '(cfw:face-header ((t (:inherit fixed-pitch)))) + '(cfw:face-sunday ((t (:inherit fixed-pitch)))) + '(cfw:face-saturday ((t (:inherit fixed-pitch)))) + '(cfw:face-holiday ((t (:inherit fixed-pitch)))) + '(cfw:face-grid ((t (:inherit fixed-pitch)))) + '(cfw:face-default-content ((t (:inherit fixed-pitch)))) + '(cfw:face-periods ((t (:foreground "#909636")))) + '(cfw:face-day-title ((t :background "#161616"))) + '(cfw:face-default-day ((t :weight bold :inherit cfw:face-day-title))) + '(cfw:face-annotation ((t :foreground "#909636" :inherit cfw:face-day-title))) + '(cfw:face-disable ((t :inherit cfw:face-day-title))) + '(cfw:face-today-title ((t :foreground "#161616" :background "#AADB0F" :weight bold))) + '(cfw:face-today ((t (:inherit fixed-pitch)))) + '(cfw:face-select ((t (:background "#F2F2F2" :foreground "#161616")))) + '(cfw:face-toolbar ((t (:inherit fixed-pitch)))) + '(cfw:face-toolbar-button-off ((t (:inherit fixed-pitch)))) + '(cfw:face-toolbar-button-on ((t (:inherit fixed-pitch))))) (use-package org-bullets :ensure t -- cgit v1.2.3