Improve agenda/items load on dashboard.
This commit is contained in:
parent
4051c11dad
commit
f199adb367
@ -58,17 +58,19 @@
|
||||
;; Un bonito y sencillo panel de inicio
|
||||
(use-package dashboard
|
||||
:defer t
|
||||
:init
|
||||
(dashboard-setup-startup-hook)
|
||||
:hook
|
||||
(dashboard-after-initialize . (lambda ()
|
||||
(elpaca-after-init . (lambda ()
|
||||
"Refrescamos el dashboard con la agenda luego de cargar todo"
|
||||
(when (< (length command-line-args) 2)
|
||||
(dashboard-open)
|
||||
(run-at-time 1 nil (lambda()
|
||||
"Recargamos el buffers con los items de manera asincrónica"
|
||||
(setq dashboard-items '(
|
||||
;; (recents . 10)
|
||||
(agenda . 10)
|
||||
))
|
||||
(dashboard-refresh-buffer)
|
||||
))
|
||||
(dashboard-refresh-buffer))) ;; Refrescamos el buffer sin bloquear emacs
|
||||
)))
|
||||
:config
|
||||
(setq dashboard-set-file-icons t
|
||||
dashboard-set-heading-icons t
|
||||
|
Loading…
Reference in New Issue
Block a user