mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 20:40:58 +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:
3
init.el
3
init.el
@@ -153,10 +153,9 @@
|
|||||||
(require 'init-workspaces)
|
(require 'init-workspaces)
|
||||||
(require 'init-indentation)
|
(require 'init-indentation)
|
||||||
(require 'init-recentfiles)
|
(require 'init-recentfiles)
|
||||||
|
;; (require 'init-completion) ;; replaced with vertico
|
||||||
(require 'init-ibuffer)
|
(require 'init-ibuffer)
|
||||||
(require 'init-printing)
|
(require 'init-printing)
|
||||||
|
|
||||||
(require 'init-completion)
|
|
||||||
(require 'init-smarter-than-emacs)
|
(require 'init-smarter-than-emacs)
|
||||||
(require 'init-marginalia)
|
(require 'init-marginalia)
|
||||||
(require 'init-ui)
|
(require 'init-ui)
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
(when file
|
(when file
|
||||||
(find-file 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
|
;; now if I incidentally closed a buffer, I can re-open it, thanks to
|
||||||
;; recent-files
|
;; recent-files
|
||||||
|
|||||||
@@ -47,8 +47,7 @@ via [[http://whattheemacsd.com/setup-ido.el-02.html][whattheemacs.d]]"
|
|||||||
;; FIXME: set this to complete*
|
;; FIXME: set this to complete*
|
||||||
;; ("TAB" . #'vertico-next)
|
;; ("TAB" . #'vertico-next)
|
||||||
;; next try: use vanilla complete on tab, maybe better?
|
;; 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
|
(use-package consult
|
||||||
;; Replace bindings. Lazily loaded due by `use-package'.
|
;; Replace bindings. Lazily loaded due by `use-package'.
|
||||||
:bind (;; C-c bindings in `mode-specific-map'
|
: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
|
;; Enable automatic preview at point in the *Completions* buffer. This is
|
||||||
;; relevant when you use the default completion UI.
|
;; 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)))
|
(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
|
(use-package
|
||||||
embark-consult
|
embark-consult
|
||||||
:after (embark consult))
|
:after (embark consult))
|
||||||
|
|||||||
Reference in New Issue
Block a user