Config: optimize dired and theme, add workspace config

This commit is contained in:
User
2026-04-06 23:49:09 +08:00
parent 4ba92e459f
commit 0139328623
9 changed files with 90 additions and 29 deletions

View File

@@ -82,7 +82,7 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(global-set-key (kbd "C-c f j") 'consult-jinx))
;; pair编辑
(global-set-key (kbd "C-c p d") 'delete-pair)
;; (global-set-key (kbd "C-c p d") 'delete-pair)
;; 快速复制当前行
(defun duplicate-and-move-to-next-line()
@@ -147,6 +147,9 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(global-set-key (kbd "C-c u c") 'my-color-picker)
(global-set-key (kbd "C-c u r") 'rainbow-mode)
;; indent-bars
(global-set-key (kbd "C-c u b") 'indent-bars-mode)
;; 打开ibuffer
(global-set-key (kbd "C-x C-b") 'ibuffer-other-window)
(setq ibuffer-default-sorting-mode 'filename)
@@ -225,7 +228,7 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
;; avy
(global-set-key (kbd "C-M-;") 'avy-goto-char)
(global-set-key (kbd "C-M-'") 'ace-pinyin-jump-char)
(global-set-key (kbd "C-M-'") 'avy-goto-word-1)
(global-set-key (kbd "M-g g") 'avy-goto-line)
;; hungry-delete
@@ -366,6 +369,21 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
;; dashboard
(global-set-key (kbd "C-c D") 'dashboard-open)
;; dired
(with-eval-after-load 'dirvish
(global-set-key (kbd "C-c d a") 'dirvish-quick-access)
(global-set-key (kbd "C-c d s") 'dirvish-side)
(global-set-key (kbd "C-c d h") 'dirvish-history-menu)
(global-set-key (kbd "C-x d") 'dired-jump)
(global-set-key (kbd "C-x C-j") 'dired)
(define-key dired-mode-map (kbd "h") 'dirvish-history-menu)
(define-key dired-mode-map (kbd "M-,") 'scroll-other-window-down)
(define-key dired-mode-map (kbd "M-.") 'scroll-other-window))
;; perspective
(global-set-key (kbd "C-M-<left>") 'persp-prev)
(global-set-key (kbd "C-M-<right>") 'persp-next)
(provide 'init-kbd)
;;; init-kbd.el ends here