From 9538d54948677c80ba54938e60ffad579effe7ed Mon Sep 17 00:00:00 2001 From: Janis Date: Mon, 15 Jul 2024 17:59:56 +0200 Subject: [PATCH] asdf --- init.org | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/init.org b/init.org index 11d8a92..3a2b5ac 100644 --- a/init.org +++ b/init.org @@ -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 "is") 'org-insert-subheading) (evil-define-key 'normal 'org-mode-map (kbd "ii") 'org-insert-item) (evil-define-key 'normal 'org-mode-map (kbd "ib") 'org-insert-structure-template) -(evil-define-key 'normal 'org-mode-map (kbd "il") 'org-insert-link) +(evil-define-key '(normal visual) 'org-mode-map (kbd "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