Ignore "Dotfiles and Lockfiles" by default in counsel-find-file

This commit is contained in:
Adam Goldsmith 2021-07-22 17:23:53 -04:00
parent 84fa4fe9fa
commit 3b210ad829

View File

@ -464,7 +464,9 @@
(bind-key "C-c C-c M-x" 'execute-extended-command) ;;normal M-x. (bind-key "C-c C-c M-x" 'execute-extended-command) ;;normal M-x.
:config :config
(setq ivy-extra-directories nil (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) (assq-delete-all 'counsel-M-x ivy-initial-inputs-alist)
(defun counsel-find-file-edit-path () (defun counsel-find-file-edit-path ()