asdf
This commit is contained in:
parent
2061e88eb8
commit
9538d54948
15
init.org
15
init.org
|
@ -176,6 +176,8 @@ Add package repositories and rank them by priority
|
||||||
(setq-default tab-width 4
|
(setq-default tab-width 4
|
||||||
fill-column 80
|
fill-column 80
|
||||||
indent-tabs-mode nil)
|
indent-tabs-mode nil)
|
||||||
|
(setq use-short-answers t)
|
||||||
|
(setq initial-major-mode 'org-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -510,7 +512,7 @@ With =TAB= I can cycle headings in org, and with =,,= I can exit the special sou
|
||||||
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>is") 'org-insert-subheading)
|
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>is") 'org-insert-subheading)
|
||||||
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>ii") 'org-insert-item)
|
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>ii") 'org-insert-item)
|
||||||
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>ib") 'org-insert-structure-template)
|
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>ib") 'org-insert-structure-template)
|
||||||
(evil-define-key 'normal 'org-mode-map (kbd "<SPC>il") 'org-insert-link)
|
(evil-define-key '(normal visual) 'org-mode-map (kbd "<SPC>il") 'org-insert-link)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Unassociated key-bindings:
|
Unassociated key-bindings:
|
||||||
|
@ -889,7 +891,7 @@ Use =vertico-posframe= to make the =vertico= buffer floating in the centre of th
|
||||||
(use-package savehist :init (savehist-mode))
|
(use-package savehist :init (savehist-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Use consult-xref for lsp-xref and xref-find-references.
|
Use =consult-xref= for =lsp-xref= and =xref-find-references=.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package consult
|
(use-package consult
|
||||||
:bind (:map custom-bindings-map
|
:bind (:map custom-bindings-map
|
||||||
|
@ -902,12 +904,14 @@ Use consult-xref for lsp-xref and xref-find-references.
|
||||||
())
|
())
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
[[https://github.com/minad/marginalia][=marginalia=]] adds marginalia into the mini-buffer, for example key-binds in =M-x=
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
:init
|
:init
|
||||||
(marginalia-mode 1))
|
(marginalia-mode 1))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Auto-completion using =corfu=:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:custom
|
:custom
|
||||||
|
@ -984,6 +988,7 @@ This package seems to slow down search quite a bit in common buffers like find-f
|
||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Fuzzy and out-of-order completion matching using =orderless=:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package orderless
|
(use-package orderless
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -994,7 +999,7 @@ This package seems to slow down search quite a bit in common buffers like find-f
|
||||||
orderless-component-separator "[ |]"))
|
orderless-component-separator "[ |]"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Use embark for in-mini-buffer actions:
|
Use =embark= for in-mini-buffer actions:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package embark
|
(use-package embark
|
||||||
:defer t
|
:defer t
|
||||||
|
@ -1020,8 +1025,8 @@ Use embark for in-mini-buffer actions:
|
||||||
(consult-ripgrep)
|
(consult-ripgrep)
|
||||||
(vertico-posframe-mode 1))
|
(vertico-posframe-mode 1))
|
||||||
|
|
||||||
(bind-key "C-s" #'my-consult-line-wrapper custom-bindings-map)
|
(bind-key "C-s" 'consult-line custom-bindings-map)
|
||||||
(bind-key "C-M-s" #'my-consult-ripgrep-wrapper custom-bindings-map)
|
(bind-key "C-M-s" 'consult-ripgrep custom-bindings-map)
|
||||||
|
|
||||||
; Ensure posframe is always restored when exiting a minibuffer
|
; Ensure posframe is always restored when exiting a minibuffer
|
||||||
(add-hook 'minibuffer-exit-hook
|
(add-hook 'minibuffer-exit-hook
|
||||||
|
|
Loading…
Reference in a new issue