Config: change some colors of geriser repl, enable display-time, install rg.

This commit is contained in:
User
2026-05-08 13:53:08 +08:00
parent 00113ef0d4
commit 1808941dcb
4 changed files with 35 additions and 26 deletions

View File

@@ -11,7 +11,7 @@
:demand t :demand t
:init :init
(setq gcmh-idle-delay 'auto (setq gcmh-idle-delay 'auto
gcmh-auto-idle-delay-factor 10 gcmh-auto-idle-delay-factor 10
gcmh-high-cons-threshold #x4000000) gcmh-high-cons-threshold #x4000000)
:config :config
(gcmh-mode 1)) (gcmh-mode 1))
@@ -38,6 +38,9 @@
:config :config
(which-key-mode)) (which-key-mode))
;; ripgrep
(use-package rg)
;; 安装vertico ;; 安装vertico
(use-package vertico (use-package vertico
:init (vertico-mode)) :init (vertico-mode))
@@ -63,7 +66,7 @@
;; everything ;; everything
(when *is-windows* (when *is-windows*
(setq consult-locate-args (encode-coding-string "es.exe -i -p -r" 'gbk)) (setq consult-locate-args (encode-coding-string "es.exe -i -p -r" 'gbk))
(setq consult-ripgrep-args (encode-coding-string (setq consult-ripgrep-args (encode-coding-string
"rg --null --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --line-number" "rg --null --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --line-number"
'gbk)) 'gbk))
@@ -139,15 +142,9 @@ targets."
;; embark-consult ;; embark-consult
(use-package embark-consult (use-package embark-consult
:config :config
(with-eval-after-load (add-hook
'consult 'embark-collect-mode-hook
'(with-eval-after-load #'consult-preview-at-point-mode))
'embark
'(progn
(require 'embark-consult)
(add-hook
'embark-collect-mode-hook
#'consult-preview-at-point-mode)))))
;; wgrep ;; wgrep
(use-package wgrep) (use-package wgrep)
@@ -155,13 +152,13 @@ targets."
;; 启用savehist保存命令顺序 ;; 启用savehist保存命令顺序
(use-package savehist (use-package savehist
:init (setq enable-recursive-minibuffers t :init (setq enable-recursive-minibuffers t
history-length 50 history-length 50
savehist-additional-variables '(mark-ring savehist-additional-variables '(mark-ring
global-mark-ring global-mark-ring
search-ring search-ring
regexp-search-ring regexp-search-ring
extended-command-history) extended-command-history)
savehist-autosave-interval 300) savehist-autosave-interval 300)
(savehist-mode)) (savehist-mode))
;; saveplace保存光标位置 ;; saveplace保存光标位置
@@ -177,8 +174,8 @@ targets."
;; vundo撤回树 ;; vundo撤回树
(use-package vundo (use-package vundo
:init (setq undo-limit 800000 :init (setq undo-limit 800000
undo-strong-limit 1200000 undo-strong-limit 1200000
undo-outer-limit 12000000)) undo-outer-limit 12000000))
;; expand-region快速展开选中 ;; expand-region快速展开选中
(use-package expand-region) (use-package expand-region)
@@ -193,10 +190,10 @@ targets."
(use-package ibuffer-projectile (use-package ibuffer-projectile
:init (add-hook 'ibuffer-hook :init (add-hook 'ibuffer-hook
(lambda () (lambda ()
(ibuffer-projectile-set-filter-groups) (ibuffer-projectile-set-filter-groups)
(unless (eq ibuffer-sorting-mode 'alphabetic) (unless (eq ibuffer-sorting-mode 'alphabetic)
(ibuffer-do-sort-by-alphabetic))))) (ibuffer-do-sort-by-alphabetic)))))
;; avy中文支持 ;; avy中文支持
(use-package ace-pinyin (use-package ace-pinyin
@@ -220,9 +217,9 @@ targets."
(#x3000 . #x303F) (#x3000 . #x303F)
(#xFF00 . #xFFEF) (#xFF00 . #xFFEF)
(#x20000 . #x2A6DF))) (#x20000 . #x2A6DF)))
(let ((start (car range)) (let ((start (car range))
(end (cdr range))) (end (cdr range)))
(dotimes (i (- end start)) (dotimes (i (- end start))
(modify-syntax-entry (+ start i) "_" jinx--syntax-table))))) (modify-syntax-entry (+ start i) "_" jinx--syntax-table)))))
(require 'init-jinx))) (require 'init-jinx)))

View File

@@ -100,6 +100,10 @@
;; 显示行号列号 ;; 显示行号列号
(column-number-mode t) (column-number-mode t)
;; 显示时间
(setq display-time-default-load-average nil)
(display-time-mode t)
;; 添加个人字体到 cnfonts ;; 添加个人字体到 cnfonts
(setq cnfonts-personal-fontnames (setq cnfonts-personal-fontnames
'(("Sarasa Fixed TC") ; 英文字体 '(("Sarasa Fixed TC") ; 英文字体

View File

@@ -43,7 +43,11 @@
`(dired-header ((,class (:foreground ,green)))) `(dired-header ((,class (:foreground ,green))))
`(mode-line ((,class (:foreground ,base0 :background ,base02)))) `(mode-line ((,class (:foreground ,base0 :background ,base02))))
`(mode-line-inactive ((,class (:foreground ,base01 :background ,base03)))) `(mode-line-inactive ((,class (:foreground ,base01 :background ,base03))))
`(display-time-date-and-time ((,class (:foreground ,base1 :bold t))))
`(jinx-misspelled ((,class (:underline (:style dashes :color ,yellow))))) `(jinx-misspelled ((,class (:underline (:style dashes :color ,yellow)))))
`(geiser-font-lock-repl-output ((,class (:foreground ,green))))
`(geiser-font-lock-doc-link ((,class (:foreground ,blue :underline t))))
`(geiser-font-lock-error-link ((,class (:foreground ,orange :underline t))))
`(vertico-current ((,class (:background ,base02 :extend t :underline nil))))))) `(vertico-current ((,class (:background ,base02 :extend t :underline nil)))))))
(provide-theme 'my-base16-dark) (provide-theme 'my-base16-dark)

View File

@@ -43,7 +43,11 @@
`(dired-header ((,class (:foreground ,green)))) `(dired-header ((,class (:foreground ,green))))
`(mode-line ((,class (:foreground ,base0 :background ,base02)))) `(mode-line ((,class (:foreground ,base0 :background ,base02))))
`(mode-line-inactive ((,class (:foreground ,base01 :background ,base03)))) `(mode-line-inactive ((,class (:foreground ,base01 :background ,base03))))
`(display-time-date-and-time ((,class (:foreground ,base1 :bold t))))
`(jinx-misspelled ((,class (:underline (:style dashes :color ,yellow))))) `(jinx-misspelled ((,class (:underline (:style dashes :color ,yellow)))))
`(geiser-font-lock-repl-output ((,class (:foreground ,green))))
`(geiser-font-lock-doc-link ((,class (:foreground ,blue :underline t))))
`(geiser-font-lock-error-link ((,class (:foreground ,orange :underline t))))
`(vertico-current ((,class (:background ,base02 :extend t :underline nil))))))) `(vertico-current ((,class (:background ,base02 :extend t :underline nil)))))))
(provide-theme 'my-base16-light) (provide-theme 'my-base16-light)