mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add Dirvish-backed Dired workflow
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
;; Tools
|
;; Tools
|
||||||
'tools/completion
|
'tools/completion
|
||||||
|
'tools/dired
|
||||||
'tools/project
|
'tools/project
|
||||||
'tools/lsp
|
'tools/lsp
|
||||||
'tools/dap
|
'tools/dap
|
||||||
|
|||||||
@@ -61,6 +61,10 @@
|
|||||||
(autoload 'gptel "gptel" nil t)
|
(autoload 'gptel "gptel" nil t)
|
||||||
(define-key fscotto/open (kbd "l") #'gptel)
|
(define-key fscotto/open (kbd "l") #'gptel)
|
||||||
|
|
||||||
|
;; -------- dirvish --------
|
||||||
|
(autoload 'dirvish-dwim "dirvish" nil t)
|
||||||
|
(define-key fscotto/open (kbd "d") #'dirvish-dwim)
|
||||||
|
|
||||||
;;;; Elfeed mode maps
|
;;;; Elfeed mode maps
|
||||||
(with-eval-after-load 'elfeed
|
(with-eval-after-load 'elfeed
|
||||||
(define-key elfeed-search-mode-map (kbd "w") #'elfeed-search-yank)
|
(define-key elfeed-search-mode-map (kbd "w") #'elfeed-search-yank)
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
;; Open (C-c o …)
|
;; Open (C-c o …)
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
(which-key-add-key-based-replacements
|
(which-key-add-key-based-replacements
|
||||||
|
"C-c o d" "Dirvish"
|
||||||
"C-c o f" "RSS (Elfeed)"
|
"C-c o f" "RSS (Elfeed)"
|
||||||
"C-c o l" "LLM chat (gptel)"
|
"C-c o l" "LLM chat (gptel)"
|
||||||
"C-c o m" "mu4e (Email Client)"
|
"C-c o m" "mu4e (Email Client)"
|
||||||
|
|||||||
36
dotfiles/desktop/.emacs.d/lisp/tools/dired.el
Normal file
36
dotfiles/desktop/.emacs.d/lisp/tools/dired.el
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
;;; dired.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package dired
|
||||||
|
:ensure nil
|
||||||
|
:commands (dired dired-jump)
|
||||||
|
:config
|
||||||
|
(setq delete-by-moving-to-trash t
|
||||||
|
dired-dwim-target t
|
||||||
|
dired-kill-when-opening-new-dired-buffer t
|
||||||
|
dired-listing-switches
|
||||||
|
"-l --almost-all --human-readable --group-directories-first --no-group")
|
||||||
|
(put 'dired-find-alternate-file 'disabled nil))
|
||||||
|
|
||||||
|
(use-package dirvish
|
||||||
|
:ensure t
|
||||||
|
:init
|
||||||
|
(dirvish-override-dired-mode)
|
||||||
|
:custom
|
||||||
|
(dirvish-use-header-line nil)
|
||||||
|
(dirvish-use-mode-line nil)
|
||||||
|
(dirvish-hide-details nil)
|
||||||
|
(dirvish-attributes nil)
|
||||||
|
(dirvish-large-directory-threshold 20000)
|
||||||
|
:config
|
||||||
|
(with-eval-after-load 'projectile
|
||||||
|
(setq projectile-switch-project-action #'projectile-dired))
|
||||||
|
:bind
|
||||||
|
(:map dirvish-mode-map
|
||||||
|
("?" . dirvish-dispatch)
|
||||||
|
("TAB" . dirvish-subtree-toggle)
|
||||||
|
("s" . dirvish-quicksort)
|
||||||
|
("h" . dired-up-directory)))
|
||||||
|
|
||||||
|
(provide 'tools/dired)
|
||||||
|
|
||||||
|
;;; dired.el ends here
|
||||||
Reference in New Issue
Block a user