mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 04:20:57 +01:00
finally remove ido for recentf as well
- replace it with consult-recent-file - tune M-x completion again a little
This commit is contained in:
@@ -33,7 +33,9 @@
|
||||
(when file
|
||||
(find-file file))))
|
||||
|
||||
(global-set-key (kbd "C-x C-r") 'recentf-ido-find-file) ;; open recent files, same as M-x rf
|
||||
;; replaced by consult-recent-files
|
||||
;; (global-set-key (kbd "C-x C-r") 'recentf-find-file)
|
||||
;; open recent files, same as M-x rf
|
||||
|
||||
;; now if I incidentally closed a buffer, I can re-open it, thanks to
|
||||
;; recent-files
|
||||
|
||||
@@ -47,8 +47,7 @@ via [[http://whattheemacsd.com/setup-ido.el-02.html][whattheemacs.d]]"
|
||||
;; FIXME: set this to complete*
|
||||
;; ("TAB" . #'vertico-next)
|
||||
;; next try: use vanilla complete on tab, maybe better?
|
||||
("TAB" . #'minibuffer-complete)
|
||||
))
|
||||
("TAB" . #'minibuffer-complete)))
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +101,8 @@ via [[http://whattheemacsd.com/setup-ido.el-02.html][whattheemacs.d]]"
|
||||
(use-package consult
|
||||
;; Replace bindings. Lazily loaded due by `use-package'.
|
||||
:bind (;; C-c bindings in `mode-specific-map'
|
||||
("C-x b" . consult-buffer))
|
||||
("C-x b" . consult-buffer)
|
||||
("C-x C-r" . consult-recent-file)) ;; replaces recentf
|
||||
|
||||
;; Enable automatic preview at point in the *Completions* buffer. This is
|
||||
;; relevant when you use the default completion UI.
|
||||
@@ -130,6 +130,20 @@ via [[http://whattheemacsd.com/setup-ido.el-02.html][whattheemacs.d]]"
|
||||
(push consult--source-perspective consult-buffer-sources)))
|
||||
|
||||
|
||||
;; change directory while opening a file etc
|
||||
(use-package consult-dir
|
||||
:ensure t
|
||||
:bind (("C-x C-d" . consult-dir)
|
||||
:map vertico-map
|
||||
("C-x C-d" . consult-dir)
|
||||
("C-x C-j" . consult-dir-jump-file)
|
||||
|
||||
:map minibuffer-local-completion-map
|
||||
("C-x C-d" . consult-dir)
|
||||
))
|
||||
|
||||
|
||||
|
||||
(use-package
|
||||
embark-consult
|
||||
:after (embark consult))
|
||||
|
||||
Reference in New Issue
Block a user