From 620a1bf6701eb71d22eb6087c17cfe48ab656118 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Thu, 10 Feb 2022 23:17:46 -0800 Subject: [PATCH] Add the annotate mode package For dropping simple word notes in your files ... visual bookmarks. --- ha-config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ha-config.org b/ha-config.org index 1afc930..8d74aaf 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1309,6 +1309,24 @@ I primarily use [[https://github.com/jaypei/emacs-neotree][Neotree]] when I am s (evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh) (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle)) #+END_SRC +** Annotations +Let's try [[https://github.com/bastibe/annotate.el][annotate-mode]], which allows you to drop "notes" and then move to them (yes, serious overlap with bookmarks, which we will return to). + +#+BEGIN_SRC emacs-lisp + (use-package annotate + :config + (ha-leader + "t A" '("annotations" . annotate-mode) + + "n" '(:ignore t :which-key "notes") + "n a" '("toggle mode" . annotate-mode) + "n n" '("annotate" . annotate-annotate) + "n d" '("delete" . annotate-delete) + "n s" '("summary" . annotate-show-annotation-summary) + "n j" '("next" . annotate-goto-next-annotation) + "n k" '("prev" . annotate-goto-previous-annotation))) +#+END_SRC +Keep the annotations simple, almost /tag-like/, and then the summary allows you to display them. ** Demo It Making demonstrations /within/ Emacs with [[https://github.com/howardabrams/demo-it][demo-it]]. #+BEGIN_SRC emacs-lisp