diff --git a/screens/dashboard.el b/screens/dashboard.el index aed3d1c..dca4c8a 100644 --- a/screens/dashboard.el +++ b/screens/dashboard.el @@ -52,11 +52,12 @@ 'face 'font-lock-keyword-face)) (defvar enlight-calendar - (progn - (calendar) - (prog1 (with-current-buffer (buffer-name (current-buffer)) - (buffer-string)) - (calendar-exit)))) + (when (not (equal system-type 'android)) + (progn + (calendar) + (prog1 (with-current-buffer (buffer-name (current-buffer)) + (concat (buffer-string) "\n\n")) + (calendar-exit))))) (defun get-weather () "Get the weather JSON for THEURGY-CITY." @@ -101,7 +102,7 @@ (list (grid-make-box `(:content ,(concat - enlight-calendar "\n\n" + enlight-calendar (funcall (if (equal system-type 'android) 'grid-make-column 'grid-make-row) @@ -111,9 +112,9 @@ ("Agenda" (org-agenda nil "a") "a") ("Go to Inbox" open-inbox "i") ("Capture" org-capture "c"))))) - :align (if (equal system-type 'android) - 'center - 'left) + :align ,(if (equal system-type 'android) + 'center + 'left) :width 20)) (grid-make-box `(:content ,(concat (enlight-menu @@ -139,9 +140,9 @@ ("Org Scratch" open-org-scratch "o") ("Init Dir" (dired user-emacs-directory) "e") ("Info" info "h"))))) - :align (if (equal system-type 'android) - 'center - 'right) + :align ,(if (equal system-type 'android) + 'center + 'right) :width 20))))) )) ))