summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorCase Duckworth2022-04-28 15:49:22 -0500
committerCase Duckworth2022-04-28 15:49:22 -0500
commit7f7ede201b1eb1a9ac7811b716bf39a5adae9896 (patch)
treea6b98b1513e3def1244522ad40327b1be9499b34 /lisp
parentAdd setup forms to imenu /after/ init (diff)
downloademacs-7f7ede201b1eb1a9ac7811b716bf39a5adae9896.tar.gz
emacs-7f7ede201b1eb1a9ac7811b716bf39a5adae9896.zip
Dim .gitignore files (mostly) in dired
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