Update ivy/counsel ignore-file/directory rules
This commit is contained in:
parent
a66a85800b
commit
b77212b78f
4 changed files with 10 additions and 4 deletions
|
@ -32,7 +32,9 @@
|
|||
(ivy-wgrep-change-to-wgrep-mode)))
|
||||
|
||||
(advice-add 'counsel-ag-function :override 'doom*counsel-ag-function)
|
||||
(define-key counsel-ag-map [backtab] 'ivy-occur))
|
||||
(define-key counsel-ag-map [backtab] 'ivy-occur)
|
||||
|
||||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)"))
|
||||
|
||||
(use-package counsel-projectile :after projectile)
|
||||
|
||||
|
|
|
@ -109,10 +109,13 @@
|
|||
(apply orig-fun args)))
|
||||
(advice-add 'projectile-cache-current-file :around 'doom*projectile-cache-current-file)
|
||||
|
||||
(push doom-temp-dir projectile-globally-ignored-directories)
|
||||
(push "assets" projectile-globally-ignored-directories)
|
||||
(push ".cask" projectile-globally-ignored-directories)
|
||||
(push ".sync" projectile-globally-ignored-directories)
|
||||
(push ".elc" projectile-globally-ignored-file-suffixes)
|
||||
(push doom-temp-dir projectile-globally-ignored-directories)
|
||||
(push ".project" projectile-globally-ignored-file-suffixes)
|
||||
(push "Icon
" projectile-globally-ignored-files)
|
||||
|
||||
(projectile-global-mode +1))
|
||||
|
||||
|
|
|
@ -181,6 +181,7 @@
|
|||
|
||||
;; Don't track attachments
|
||||
(push (format "/%s.+$" (regexp-quote org-attach-directory)) recentf-exclude)
|
||||
(push ".attach" projectile-globally-ignored-file-suffixes)
|
||||
|
||||
;; Remove highlights on ESC
|
||||
(defun doom*org-remove-occur-highlights (&rest args)
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
`(lambda () (interactive)
|
||||
(let ((default-directory ,path))
|
||||
(,@(if project-p
|
||||
'(projectile-find-file)
|
||||
'(call-interactively 'find-file))))))
|
||||
'(counsel-projectile-find-file)
|
||||
'(call-interactively 'counsel-find-file))))))
|
||||
|
||||
(map! "<f9>" 'what-face
|
||||
;; Essential
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue