概要
- 補完機能の強化 vertico.el consult.el orderless.el marginalia.el embark.el
GNU Emacsの既存ファイル名やコマンド入力、検索機能等の補完機能を強化するために、vertico.el を設定します。非常におすすめです。
init.el に次の内容を追加します。
この使い方は、次に投稿します。
(leaf vertico-setting
:config
(leaf consult
:ensure t
:bind (("C-c h" . consult-history)
("C-c m" . consult-mode-command)
("C-c b" . consult-bookmark)
("C-c k" . consult-kmacro)
("C-x M-:" . consult-complex-command)
("C-x b" . consult-buffer)
("C-x 4 b" . consult-buffer-other-window)
("C-x 5 b" . consult-buffer-other-frame)
("M-#" . consult-register-load)
("M-'" . consult-register-store)
("C-M-#" . consult-register)
("M-y" . consult-yank-pop)
(" a" . consult-apropos)
("M-g e" . consult-compile-error)
("M-g f" . consult-flymake)
("M-g g" . consult-goto-line)
("M-g M-g" . consult-goto-line)
("M-g o" . consult-outline)
("M-g m" . consult-mark)
("M-g k" . consult-global-mark)
("M-g i" . consult-imenu)
("M-g I" . consult-imenu-multi)
("M-s f" . consult-find)
("M-s F" . consult-locate)
("M-s g" . consult-grep)
("M-s G" . consult-git-grep)
("M-s r" . consult-ripgrep)
("M-s l" . consult-line)
("M-s L" . consult-line-multi)
("M-s m" . consult-multi-occur)
("M-s k" . consult-keep-lines)
("M-s u" . consult-focus-lines)
("M-s e" . consult-isearch)
(isearch-mode-map
("M-e" . consult-isearch)
("M-s e" . consult-isearch)
("M-s l" . consult-line)
("M-s L" . consult-line-multi))))
(leaf orderless
:doc "Completion style for matching regexps in any order"
:req "emacs-26.1"
:tag "extensions" "emacs>=26.1"
:url "https://github.com/oantolin/orderless"
:added "2021-09-04"
:emacs>= 26.1
:setq ((completion-styles quote
(orderless)))
:ensure t)
(leaf vertico
:doc "VERTical Interactive COmpletion"
:req "emacs-27.1"
:tag "emacs>=27.1"
:url "https://github.com/minad/vertico"
:added "2021-09-04"
:emacs>= 27.1
:setq ((vertico-count . 20))
:ensure t)
(leaf marginalia
:ensure t)
(leaf init_hook
:preface
(defun after-init-hook nil
(vertico-mode)
(marginalia-mode)
(savehist-mode))
:hook ((after-init-hook . after-init-hook)))
(leaf embark
:doc "Conveniently act on minibuffer completions"
:req "emacs-26.1"
:tag "convenience" "emacs>=26.1"
:url "https://github.com/oantolin/embark"
:added "2021-09-04"
:emacs>= 26.1
:ensure t)
(leaf embark-consult
:doc "Consult integration for Embark"
:req "emacs-25.1" "embark-0.9" "consult-0.1"
:tag "convenience" "emacs>=25.1"
:url "https://github.com/oantolin/embark"
:added "2021-09-04"
:emacs>= 25.1
:ensure t
:after embark consult)
)