This commit is contained in:
Janis 2024-07-15 17:59:56 +02:00
parent 2061e88eb8
commit 9538d54948

View file

@ -176,6 +176,8 @@ Add package repositories and rank them by priority
(setq-default tab-width 4
fill-column 80
indent-tabs-mode nil)
(setq use-short-answers t)
(setq initial-major-mode 'org-mode)
#+end_src
#+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>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>il") 'org-insert-link)
(evil-define-key '(normal visual) 'org-mode-map (kbd "<SPC>il") 'org-insert-link)
#+end_src
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))
#+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
(use-package consult
:bind (:map custom-bindings-map
@ -902,12 +904,14 @@ Use consult-xref for lsp-xref and xref-find-references.
())
#+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
(use-package marginalia
:init
(marginalia-mode 1))
#+end_src
Auto-completion using =corfu=:
#+begin_src emacs-lisp
(use-package corfu
:custom
@ -984,6 +988,7 @@ This package seems to slow down search quite a bit in common buffers like find-f
)
#+end_src
Fuzzy and out-of-order completion matching using =orderless=:
#+begin_src emacs-lisp
(use-package orderless
: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 "[ |]"))
#+end_src
Use embark for in-mini-buffer actions:
Use =embark= for in-mini-buffer actions:
#+begin_src emacs-lisp
(use-package embark
:defer t
@ -1020,8 +1025,8 @@ Use embark for in-mini-buffer actions:
(consult-ripgrep)
(vertico-posframe-mode 1))
(bind-key "C-s" #'my-consult-line-wrapper custom-bindings-map)
(bind-key "C-M-s" #'my-consult-ripgrep-wrapper custom-bindings-map)
(bind-key "C-s" 'consult-line custom-bindings-map)
(bind-key "C-M-s" 'consult-ripgrep custom-bindings-map)
; Ensure posframe is always restored when exiting a minibuffer
(add-hook 'minibuffer-exit-hook