Update grid API

This commit is contained in:
BirDt_ 2025-09-27 09:26:32 +08:00
parent 80b0c943e9
commit 89a2019176

View file

@ -91,20 +91,20 @@
:custom
(enlight-content
(concat
(grid-get-box `(:align center :content ,enlight-theurgy-logo :width 80))
(grid-get-row
(grid-make-box `(:align center :content ,enlight-theurgy-logo :width 80))
(grid-make-row
(list
(grid-get-box
(grid-make-box
`(:content ,(concat
(grid-get-box
(grid-make-box
`( :content
,(concat
(grid-get-box `( :content ,(propertize "Theurgy Emacs" 'face 'variable-pitch-serif-text)
(grid-make-box `( :content ,(propertize "Theurgy Emacs" 'face 'variable-pitch-serif-text)
:width 80 :align center)))
:width 80))
enlight-calendar "\n\n"
(grid-get-row
(list (grid-get-box `(:content ,(concat
(grid-make-row
(list (grid-make-box `(:content ,(concat
(enlight-menu
'(("Exobrain"
("Agenda" (org-agenda nil "a") "a")
@ -112,14 +112,14 @@
("Capture" org-capture "c")))))
:align left
:width 20))
(grid-get-box `(:content ,(concat
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Projects"
("Switch To" theurgy-open-project "p")
("Project List" theurgy-edit-projects-list "l")))))
:align center
:width 20))
(grid-get-box `(:content ,(concat
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Userland"
("Dired" (dired "~") "d")
@ -129,7 +129,7 @@
("Weather" theurgy-show-weather "w")))))
:align center
:width 20))
(grid-get-box `(:content ,(concat
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Meta"
("Elisp Scratch" open-elisp-scratch "s")
@ -140,7 +140,7 @@
:width 20)))))
))
))
;(grid-get-box `(:content ,(enlight-weather) :align center))
;(grid-make-box `(:content ,(enlight-weather) :align center))
)))
(setopt initial-buffer-choice #'enlight)