chor: clean up some configs and keybindings
This commit is contained in:
@@ -96,6 +96,7 @@
|
|||||||
|
|
||||||
;; which-key,快捷键提示
|
;; which-key,快捷键提示
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
|
:straight nil
|
||||||
:delight
|
:delight
|
||||||
:hook
|
:hook
|
||||||
(after-init . which-key-mode))
|
(after-init . which-key-mode))
|
||||||
|
|||||||
@@ -103,9 +103,6 @@
|
|||||||
"g" 'consult-notes-search-in-all-notes
|
"g" 'consult-notes-search-in-all-notes
|
||||||
"C" 'calendar
|
"C" 'calendar
|
||||||
"c" 'org-capture
|
"c" 'org-capture
|
||||||
"P" 'my-blog-publish
|
|
||||||
"p" 'my-note-push
|
|
||||||
"v" 'my-blog-preview
|
|
||||||
"d" 'denote
|
"d" 'denote
|
||||||
"r" 'denote-rename-file-date
|
"r" 'denote-rename-file-date
|
||||||
"R" 'denote-rename-file
|
"R" 'denote-rename-file
|
||||||
@@ -148,6 +145,8 @@
|
|||||||
"e" 'eshell
|
"e" 'eshell
|
||||||
"E" 'eat
|
"E" 'eat
|
||||||
"p" 'proced
|
"p" 'proced
|
||||||
|
"b" 'benchmark-init/show-durations-tree
|
||||||
|
"B" 'benchmark-init/show-durations-tabulated
|
||||||
"s" 'syncthing)
|
"s" 'syncthing)
|
||||||
|
|
||||||
;; scratch buffer
|
;; scratch buffer
|
||||||
|
|||||||
@@ -143,6 +143,8 @@
|
|||||||
;; agenda
|
;; agenda
|
||||||
(use-package org-agenda
|
(use-package org-agenda
|
||||||
:straight nil
|
:straight nil
|
||||||
|
:hook
|
||||||
|
(org-agenda-finalize . disable-truncate-lines)
|
||||||
:config
|
:config
|
||||||
(setq org-agenda-custom-commands
|
(setq org-agenda-custom-commands
|
||||||
'(("pa" "priority >= A"
|
'(("pa" "priority >= A"
|
||||||
|
|||||||
@@ -77,8 +77,9 @@
|
|||||||
("integration" "integration/*")
|
("integration" "integration/*")
|
||||||
(:exclude ".dir-locals.el" "*-tests.el")))
|
(:exclude ".dir-locals.el" "*-tests.el")))
|
||||||
:hook
|
:hook
|
||||||
((eshell-load . eat-eshell-mode)
|
(eshell-load . eat-eshell-mode)
|
||||||
(eshell-load . eat-eshell-visual-command-mode))
|
(eshell-load . eat-eshell-visual-command-mode)
|
||||||
|
(eat-mode . toggle-truncate-lines)
|
||||||
:config
|
:config
|
||||||
(setq eat-term-terminfo-directory eat--terminfo-path)))
|
(setq eat-term-terminfo-directory eat--terminfo-path)))
|
||||||
|
|
||||||
|
|||||||
@@ -61,16 +61,7 @@
|
|||||||
;; eshell高亮
|
;; eshell高亮
|
||||||
(use-package eshell-syntax-highlighting
|
(use-package eshell-syntax-highlighting
|
||||||
:hook
|
:hook
|
||||||
(eshell-mode . eshell-syntax-highlighting-global-mode)
|
(eshell-mode . eshell-syntax-highlighting-global-mode))
|
||||||
:config
|
|
||||||
(add-hook 'eshell-mode-hook
|
|
||||||
(lambda ()
|
|
||||||
(setenv "TERM" "xterm-256color")
|
|
||||||
(setenv "COLORTERM" "truecolor")
|
|
||||||
(add-to-list 'eshell-output-filter-functions 'eshell-handle-ansi-color t)
|
|
||||||
(setq-local eshell-prefer-lisp-functions nil)
|
|
||||||
(setenv "LS_COLORS"
|
|
||||||
"di=34:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46"))))
|
|
||||||
|
|
||||||
;; 缩进线
|
;; 缩进线
|
||||||
(use-package indent-bars
|
(use-package indent-bars
|
||||||
@@ -103,7 +94,7 @@
|
|||||||
(propertize (format-time-string "-%p") 'face 'font-lock-comment-face))
|
(propertize (format-time-string "-%p") 'face 'font-lock-comment-face))
|
||||||
'help-echo (format-time-string "%A, %B %d, %Y"))))))
|
'help-echo (format-time-string "%A, %B %d, %Y"))))))
|
||||||
|
|
||||||
;; 安装cnfonts脚本,用于修复中英文对齐
|
;; 安装cnfonts,修复中英文对齐
|
||||||
(use-package cnfonts
|
(use-package cnfonts
|
||||||
:hook
|
:hook
|
||||||
(after-init . cnfonts-mode)
|
(after-init . cnfonts-mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user