(require 'fcuny-vars) (use-package avy :ensure t :bind (("C-c l" . avy-goto-line))) (use-package bookmark :custom (bookmark-default-file (expand-file-name "bookmarks" fcuny/path-emacs-var)) (bookmark-save-flag 1)) (use-package counsel :ensure t :after ivy :init (counsel-mode 1) :bind (("M-x" . counsel-M-x) ("C-s" . counsel-grep-or-swiper) ("C-x C-f" . counsel-find-file) ("C-x C-r" . counsel-recentf) ("C-c f" . counsel-git) ("C-c s" . counsel-git-grep) ("C-c /" . counsel-rg) ("C-x r l" . counsel-bookmark)) :custom (counsel-find-file-ignore-regexp "\\.DS_Store\\|\\.localized\\'") (counsel-find-file-at-point t)) (use-package dired :defer t :bind (("C-x C-d" . dired) ("C-x C-j" . dired-jump)) :init (setq-default dired-dwim-target t) (setq-default dired-listing-switches "-alh") (setq dired-recursive-deletes 'always) (setq dired-recursive-copies 'always) (let ((gls (executable-find "/bin/ls"))) (when gls (setq insert-directory-program gls)))) (use-package dired-x :ensure nil :config (progn (setq dired-omit-verbose nil) ;; hide backup, autosave, *.*~ files ;; omit mode can be toggled using `C-x M-o' in dired buffer. (add-hook 'dired-mode-hook #'dired-omit-mode) (setq dired-omit-files (concat dired-omit-files "\\|^.DS_Store$\\|^.localized$\\|^.projectile$\\|^.git$")))) (use-package guide-key :ensure t :config (guide-key-mode t) :custom (guide-key/guide-key-sequence '("C-x"))) (use-package ibuffer :bind ("C-x C-b" . ibuffer)) (use-package ivy :ensure t :init (ivy-mode 1) :custom (ivy-use-virtual-buffers t) (ivy-count-format "(%d/%d) ") (ivy-height 20) (ivy-use-virtual-buffers t) (ivy-use-selectable-prompt t) :bind (("C-x b" . ivy-switch-buffer) ("C-c C-r" . ivy-resume) ("C-c s" . swiper-at-point) ("C-s" . swiper))) (use-package recentf :init (recentf-mode 1) :config (add-to-list 'recentf-exclude "\\.emacs.d") (add-to-list 'recentf-exclude ".+tmp......\\.org") (setq recentf-max-saved-items 500 recentf-save-file (expand-file-name "var/recentf" user-emacs-directory))) (use-package rg :ensure t :custom (rg-group-result t) (rg-show-columns t) (rg-align-position-numbers t) (rg-align-line-number-field-length 3) (rg-align-column-number-field-length 3) (rg-align-line-column-separator "#") (rg-align-position-content-separator "|")) (provide 'fcuny-navigation)