Improve emacs startup with a new hook.

This commit is contained in:
KJ
2024-04-27 01:24:25 -04:00
parent 2fd710ea54
commit b8cb8e3ad6
2 changed files with 11 additions and 3 deletions

View File

@ -325,18 +325,19 @@
:defer t
:ensure nil
:bind ("C-x C-r" . recentf-open-files)
:hook
(elpaca-after-init . recentf-mode)
:hook (after-load-theme . recentf-mode)
:config
(setq recentf-save-file
(recentf-expand-file-name (concat temp-dir "/recentf"))
recentf-auto-cleanup 'never
recentf-keep '(file-remote-p file-readable-p)
recentf-max-saved-items 1000
recentf-max-menu-items 500))
;; Busqueda rápida con ripgrep
(use-package rg
:defer t
:hook (elpaca-after-init . rg-enable-default-bindings)
;; :hook (elpaca-after-init . rg-enable-default-bindings)
:bind (:map rg-global-map
("c" . rg-dwim-current-dir)
("f" . rg-dwim-current-file)