mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Update ivy/counsel ignore-file/directory rules
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user