From 3b210ad829b95bf14804f313dc0bcbffc37d92ca Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 22 Jul 2021 17:23:53 -0400 Subject: [PATCH] Ignore "Dotfiles and Lockfiles" by default in counsel-find-file --- .emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a7487e6..2963995 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -464,7 +464,9 @@ (bind-key "C-c C-c M-x" 'execute-extended-command) ;;normal M-x. :config (setq ivy-extra-directories nil - counsel-preselect-current-file t) + counsel-preselect-current-file t + ;; ignore "Dotfiles and Lockfiles" by default + counsel-find-file-ignore-regexp "\\(?:\\`\\|[/\\]\\)\\(?:[#.]\\)") (assq-delete-all 'counsel-M-x ivy-initial-inputs-alist) (defun counsel-find-file-edit-path ()