aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points/terminal.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-01 21:01:17 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-01 21:01:17 +0200
commit6c37a4c00cd420e50d0cd2ad088268bcbb3d9155 (patch)
treef5c0052c1cfa1c2a9019f83f7d93d04418379d7a /module/entry-points/terminal.scm
parentAdd set-config! and get-config, along with print for debug. (diff)
downloadcalp-6c37a4c00cd420e50d0cd2ad088268bcbb3d9155.tar.gz
calp-6c37a4c00cd420e50d0cd2ad088268bcbb3d9155.tar.xz
Update remaining code to use new config scheme.
Diffstat (limited to 'module/entry-points/terminal.scm')
-rw-r--r--module/entry-points/terminal.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/entry-points/terminal.scm b/module/entry-points/terminal.scm
index 0f2a85f0..9f486d90 100644
--- a/module/entry-points/terminal.scm
+++ b/module/entry-points/terminal.scm
@@ -5,7 +5,6 @@
:use-module (ice-9 getopt-long)
:use-module (datetime)
:use-module (datetime util)
- :use-module (util config all)
:use-module (vulgar)
)
@@ -16,9 +15,8 @@
(define (main args)
(define opts (getopt-long args options))
(define-values (calendars events)
- (load-calendars
- calendar-files: (cond [(option-ref opts 'file #f) => list]
- [else (calendar-files)]) ))
+ (cond [(option-ref opts 'file #f) => (compose load-calendars list)]
+ [else (load-calendars)]))
(let ((date (or (and=> (option-ref opts 'date #f) parse-freeform-date)
(current-date))))