diff options
Diffstat (limited to 'lisp/+dired.el')
-rw-r--r-- | lisp/+dired.el | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lisp/+dired.el b/lisp/+dired.el deleted file mode 100644 index 2e42c19..0000000 --- a/lisp/+dired.el +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | ;;; +dired.el -*- lexical-binding: t -*- | ||
2 | |||
3 | ;;; Code: | ||
4 | |||
5 | (with-eval-after-load 'vertico | ||
6 | (defun +dired-goto-file (file) | ||
7 | "ADVICE for `dired-goto-file' to make RET call `vertico-exit'." | ||
8 | (interactive ; stolen from `dired-goto-file' | ||
9 | (prog1 | ||
10 | (list (dlet ((vertico-map (copy-keymap vertico-map))) | ||
11 | (define-key vertico-map (kbd "RET") #'vertico-exit) | ||
12 | (expand-file-name (read-file-name "Goto file: " | ||
13 | (dired-current-directory))))) | ||
14 | (push-mark))) | ||
15 | (dired-goto-file file))) | ||
16 | |||
17 | ;;; [[https://www.reddit.com/r/emacs/comments/u2lf9t/weekly_tips_tricks_c_thread/i4n9aoa/?context=3][Dim files in .gitignore]] | ||
18 | |||
19 | (defun +dired-dim-git-ignores () | ||
20 | "Dim out .gitignore contents" | ||
21 | (require 'vc) | ||
22 | (when-let ((ignores (vc-default-ignore-completion-table 'git ".gitignore")) | ||
23 | (exts (make-local-variable 'completion-ignored-extensions))) | ||
24 | (dolist (item ignores) | ||
25 | (add-to-list exts item)))) | ||
26 | |||
27 | (provide '+dired) | ||
28 | ;;; +dired.el ends here | ||