aboutsummaryrefslogtreecommitdiff
path: root/gui/conf/init.el
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-10-11 21:00:40 +0200
committerAdrian Kummerlaender2020-10-11 21:00:40 +0200
commit0e6f7facde00c2f2701645fc4673f9bf7872aaf0 (patch)
tree5dfcae4ac8524c66f724b0802effbd8fae7c12ec /gui/conf/init.el
parenta2096422139e06d3f1057c3ba97f139541597e5c (diff)
downloadnixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar.gz
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar.bz2
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar.lz
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar.xz
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.tar.zst
nixos_home-0e6f7facde00c2f2701645fc4673f9bf7872aaf0.zip
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.
Diffstat (limited to 'gui/conf/init.el')
-rw-r--r--gui/conf/init.el35
1 files changed, 34 insertions, 1 deletions
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