More android compat
This commit is contained in:
parent
0bc99bdb7e
commit
5a940ad8c6
1 changed files with 13 additions and 12 deletions
|
@ -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)))))
|
||||
))
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue