From ac8dd95870473509d308937f9201132220358fb4 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 6 Mar 2023 07:07:26 +0100 Subject: [PATCH] replaced acewindow with avy, some cleanup --- config.org | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/config.org b/config.org index f7a1fe7..cf1a9f5 100644 --- a/config.org +++ b/config.org @@ -420,7 +420,7 @@ Some windows specific stuff Exclude some dirs from spamming recentf #+begin_src emacs-lisp (use-package recentf - :defer 1 +; :defer 1 :config (recentf-mode) :custom @@ -451,7 +451,7 @@ Exclude some dirs from spamming recentf (undo-tree-auto-save-history nil)) #+END_SRC -* ace-window +* COMMENT ace-window (now avy) #+begin_src emacs-lisp (use-package ace-window :ensure t @@ -622,6 +622,17 @@ Exclude some dirs from spamming recentf "q" '(imenu-list-quit-window :which-key "quit")) #+END_SRC +* avy +Search, move, copy, delete text within all visible buffers. +Also replaces ace-window for buffer switching. +[[https://github.com/abo-abo/avy]] + +#+BEGIN_SRC emacs-lisp +(use-package avy + :ensure t + :bind ("M-s w" . avy-goto-char-2)) +#+END_SRC + * Vertico & Orderless Vertico is a completion ui. Orderless orders the suggestions by recency. The package prescient orders by frequency. @@ -706,9 +717,9 @@ Does stuff in the minibuffer results (embark-collect-mode . embark-consult-preview-minor-mode)) #+end_src -* Helm +* COMMENT Helm As an alternative if I'm not happy with selectrum & co -begin_src emacs-lisp +#+begin_src emacs-lisp (use-package helm :ensure t :hook @@ -730,10 +741,10 @@ begin_src emacs-lisp (helm-autoresize-max-height 20) (helm-autoresize-min-height 5) ) -end_src +#+end_src -* ivy / counsel / swiper -+BEGIN_SRC emacs-lisp +* COMMENT ivy / counsel / swiper +#+BEGIN_SRC emacs-lisp ; (require 'ivy) (use-package ivy :ensure t @@ -780,7 +791,8 @@ end_src (use-package ivy-hydra :ensure t) -+END_SRC +#+END_SRC + * outlook In outlook a macro is necessary, also a reference to FM20.DLL (Microsoft Forms 2.0 Object Library, in c:\windows\syswow64\fm20.dll) @@ -1432,8 +1444,17 @@ In status buffer: ) :bind (("C-x g" . magit-status))) #+END_SRC - -** LSP +** COMMENT Eglot (can't do dap-mode) +for python pyls (in env: pip install python-language-server) seems to work better than pyright (npm install -g pyright), +at least pandas couldnt be resolved in pyright +#+begin_src emacs-lisp +(use-package eglot + :ensure t + :init + (setq completion-category-overrides '((eglot (styles orderless))))) + +#+end_src +** LSP (now eglot) Configuration for the language server protocol *ACHTUNG* Dateipfad muss absolut sein, symlink im Pfad führt zumindest beim ersten Start zu Fehlern beim lsp Sobald der lsp einmal lief, kann zukünftig der symlink-Pfad genommen werden. @@ -1555,7 +1576,7 @@ With hippie expand I am able to use yasnippet and emmet at the same time with th flycheck-display-errors-delay .3)) ;; this way any errors will override eldoc messages #+END_SRC -** Projectile +** COMMENT Projectile (now project.el, if any) Manage projects and jump quickly between its files #+BEGIN_SRC emacs-lisp (use-package projectile