feat(base): Add magit-prime, org-tree-slide, pixel-scroll and eww config

- Install magit-prime package
- Add org-tree-slide with custom start/stop functions and keybindings
- Enable pixel-scroll-precision-mode
- Add basic eww configuration
This commit is contained in:
2026-06-10 03:56:07 +08:00
parent a524b13444
commit 2eae88527a
13 changed files with 95 additions and 15 deletions

View File

@@ -115,6 +115,11 @@
("App" (mode . exwm-mode))
("Scratch" (or
(name . "^*scratch")))
("eww" (or
(mode . eww-mode)
(mode . eww-bookmark-mode)
(mode . eww-buffers-mode)
(mode . eww-history-mode)))
("Shell" (or
(mode . eshell-mode)
(mode . eat-mode)
@@ -209,6 +214,25 @@
:config
(setq kill-whole-line t ;kill-line删除换行符
set-mark-command-repeat-pop t)) ;更方便地pop mark
;; 滚动
(use-package pixel-scroll
:straight nil
:hook
(after-init . pixel-scroll-precision-mode)
:config
(setq scroll-preserve-screen-position t
scroll-conservatively 101))
;; eww
(use-package eww
:config
(setq eww-auto-rename-buffer t))
;; shr
(use-package shr
:config
(setq shr-inhibit-images nil))
(provide 'init-base)