enable avy support and fix name of use package source block

This commit is contained in:
Peter Tillemans 2024-12-10 09:59:35 +01:00
parent 5aa31f96ca
commit 3cf13265b8
2 changed files with 39 additions and 4 deletions

View file

@ -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/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]] - [[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" #+BEGIN_SRC emacs-lisp :tangle "early-init.el"
@ -118,8 +120,6 @@ I see it is outdated I tangle it.
#+END_SRC #+END_SRC
* First Things First
** Make tangled file read-only ** Make tangled file read-only
Add a preamble to the file to ensure some global settings, most 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: #+RESULTS:
: [nil 26432 31533 350342 nil elpaca-process-queues nil nil 899000 nil] : [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 * Writing and Planning
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: source block # name: use package source block
# key: <sup # key: <sup
# -- # --
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp