This commit is contained in:
Zelong Kuang
2026-03-23 12:48:17 +11:00
parent 3687116fe6
commit 28b3334925
4 changed files with 50 additions and 38 deletions

1
.gitignore vendored
View File

@@ -36,6 +36,7 @@ rime
flycheck_*.el
tabsession.el
emacs.desktop
history
!alias
# generated by elisp packages at root

View File

@@ -6,6 +6,10 @@
(require 'init-gc)
(require 'init-better-default)
(require 'init-ui)
;; (require 'init-dashboard) ;; not working
(require 'init-god)
;; (require 'init-meow)
(require 'init-hydra)
@@ -26,7 +30,10 @@
(require 'init-vcs)
(require 'init-shell)
(require 'init-check)
;; (require 'init-treemacs) ;; not working
(require 'init-eglot)
;; (require 'init-lsp) ;; not working
(require 'init-org)
(require 'init-tex)

View File

@@ -1,42 +1,41 @@
;; -*- lexical-binding: t; -*-
(elpaca dashboard
(require 'dashboard))
(use-package doom-dashboard
:ensure (doom-dashboard :host github
:repo "emacs-dashboard/doom-dashboard")
:after dashboard
:demand t
;; Movement keys like doom.
:bind
(:map dashboard-mode-map
("<remap> <dashboard-previous-line>" . widget-backward)
("<remap> <dashboard-next-line>" . widget-forward)
("<remap> <previous-line>" . widget-backward)
("<remap> <next-line>" . widget-forward)
("<remap> <right-char>" . widget-forward)
("<remap> <left-char>" . widget-backward))
:custom
(dashboard-banner-logo-title "E M A C S")
(dashboard-startup-banner
(concat doom-dashboard-banner-directory "bcc.txt")) ; Use banner you want
(dashboard-footer-icon
(nerd-icons-faicon "nf-fa-github_alt" :face 'success :height 1.5))
(dashboard-page-separator "\n")
(dashboard-startupify-list `(dashboard-insert-banner
dashboard-insert-banner-title
dashboard-insert-newline
dashboard-insert-items
,(dashboard-insert-newline 2)
dashboard-insert-init-info
,(dashboard-insert-newline 2)
doom-dashboard-insert-homepage-footer))
(dashboard-item-generators
'((recents . doom-dashboard-insert-recents-shortmenu)
(bookmarks . doom-dashboard-insert-bookmark-shortmenu)
(projects . doom-dashboard-insert-project-shortmenu)
(agenda . doom-dashboard-insert-org-agenda-shortmenu)))
(dashboard-items '(projects agenda bookmarks recents)))
(use-package dashboard
:init
(use-package doom-dashboard
:ensure (doom-dashboard :host github
:repo "emacs-dashboard/doom-dashboard")
:demand t
;; Movement keys like doom.
:bind
(:map dashboard-mode-map
("<remap> <dashboard-previous-line>" . widget-backward)
("<remap> <dashboard-next-line>" . widget-forward)
("<remap> <previous-line>" . widget-backward)
("<remap> <next-line>" . widget-forward)
("<remap> <right-char>" . widget-forward)
("<remap> <left-char>" . widget-backward))
:custom
(dashboard-banner-logo-title "E M A C S")
(dashboard-startup-banner
(concat doom-dashboard-banner-directory "bcc.txt")) ; Use banner you want
(dashboard-footer-icon
(nerd-icons-faicon "nf-fa-github_alt" :face 'success :height 1.5))
(dashboard-page-separator "\n")
(dashboard-startupify-list `(dashboard-insert-banner
dashboard-insert-banner-title
dashboard-insert-newline
dashboard-insert-items
,(dashboard-insert-newline 2)
dashboard-insert-init-info
,(dashboard-insert-newline 2)
doom-dashboard-insert-homepage-footer))
(dashboard-item-generators
'((recents . doom-dashboard-insert-recents-shortmenu)
(bookmarks . doom-dashboard-insert-bookmark-shortmenu)
(projects . doom-dashboard-insert-project-shortmenu)
(agenda . doom-dashboard-insert-org-agenda-shortmenu)))
(dashboard-items '(projects agenda bookmarks recents)))
)
(provide 'init-dashboard)

View File

@@ -44,6 +44,11 @@
;; (elpaca example-package)
;; Uncomment for systems which cannot create symlinks:
(when (eq system-type 'windows-nt)
(elpaca-no-symlink-mode))
;; Install use-package support
(elpaca elpaca-use-package
;; Enable use-package :ensure support for Elpaca.