aboutsummaryrefslogtreecommitdiff
path: root/system/config.scm
blob: bc3ce52c014b90f4b6c5f2cadd04ad4dd5d8066e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(set-config! 'calendar-files (glob "/var/lib/calp/.local/var/cal/*"))

(define (parse-links str)
  (define regexp (make-regexp "https?://\\S+"))
  (let recur ((str str))
    (let ((m (regexp-exec regexp str)))
      (if (not m)
          (list str)
          (cons* (match:prefix m)
                 (a (match:substring m))
                 (recur (match:suffix m)))))))

(set-config! 'description-filter
 (lambda (ev str) (parse-links str)))

(set-config! 'week-start mon)
;; (set-config! 'default-calendar "Calendar")

(set-config 'port 8082)
(set-config 'edit-mode #t)