From 3cf13265b8cd3b421b77f9e8941f445896f4471c Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Tue, 10 Dec 2024 09:59:35 +0100 Subject: [PATCH] enable avy support and fix name of use package source block --- init.org | 41 ++++++++++++++++++++-- snippets/org-mode/use-package source block | 2 +- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index 58ec25f..35f266e 100644 --- a/init.org +++ b/init.org @@ -35,7 +35,9 @@ one to use. - [[https://github.com/jwiegley/dot-emacs/blob/master/init.org][John Wiegley's .emacs file]] - [[https://github.com/TheBB/dotemacs/blob/master/init.el][Eivind Fonn's init.el]] -* Bootstrapping Emacs Configuration +* First Things First + +** Bootstrapping Emacs Configuration #+BEGIN_SRC emacs-lisp :tangle "early-init.el" @@ -118,8 +120,6 @@ I see it is outdated I tangle it. #+END_SRC -* First Things First - ** Make tangled file read-only Add a preamble to the file to ensure some global settings, most @@ -1168,6 +1168,41 @@ worked on. See the [[https://github.com/joaotavora/breadcrumb][breadcrumb repo]] #+RESULTS: : [nil 26432 31533 350342 nil elpaca-process-queues nil nil 899000 nil] +** Enable Avy jumping + +Avy mode replace ace-jump mode with a lot of functionality hidden + +see [[https://karthinks.com/software/avy-can-do-anything/][Avy can Do Anything]] article by the author on the design philosophy +behind it. + +#+BEGIN_SRC emacs-lisp + (use-package avy + :ensure t + :commans '(avy-goto-char + avy-goto-char-2 + avy-goto-char-2-above + avy-goto-char-2-below + avy-goto-char-in-line + avy-goto-char-timer + avy-goto-line + avy-goto-line-above + avy-goto-line-below + avy-goto-subword-0 + avy-goto-subword-1 + avy-goto-symbol-1 + avy-goto-symbol-1-above + avy-goto-symbol-1-below + avy-goto-word-0 + avy-goto-word-1 + avy-goto-word-1-above + avy-goto-word-1-below + avy-goto-word-or-subword-1)) +#+END_SRC + +Avy is supported by evil and setup in the *evil-integration* package. + +#+RESULTS: + * Writing and Planning #+BEGIN_SRC emacs-lisp diff --git a/snippets/org-mode/use-package source block b/snippets/org-mode/use-package source block index d6379fd..aaefc1d 100644 --- a/snippets/org-mode/use-package source block +++ b/snippets/org-mode/use-package source block @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: source block +# name: use package source block # key: