about summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/+dired.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/+dired.el b/lisp/+dired.el index 131d326..9a2e01a 100644 --- a/lisp/+dired.el +++ b/lisp/+dired.el
@@ -15,5 +15,15 @@
15 (push-mark))) 15 (push-mark)))
16 (dired-goto-file file)) 16 (dired-goto-file file))
17 17
18;;; [[https://www.reddit.com/r/emacs/comments/u2lf9t/weekly_tips_tricks_c_thread/i4n9aoa/?context=3][Dim files in .gitignore]]
19
20(defun +dired-dim-git-ignores ()
21 "Dim out .gitignore contents"
22 (require 'vc)
23 (when-let ((ignores (vc-default-ignore-completion-table 'git ".gitignore"))
24 (exts (make-local-variable 'completion-ignored-extensions)))
25 (dolist (item ignores)
26 (add-to-list exts item))))
27
18(provide '+dired) 28(provide '+dired)
19;;; +dired.el ends here 29;;; +dired.el ends here