March 20, 2026

EmacsEmacs

Much Ado About Emacs 012

Haven’t written an update on my usage of Emacs for a while. Decided to stop tweaking the configuration to concentrate on getting familiar with what I have setup. That lasted for two seconds. Emacs developers are coming up with new things and I have severe FOMO. I have additions.

Kirigami

Kirigami “The kirigami Emacs package provides a unified method to fold and unfold text in Emacs across a diverse set of Emacs modes.” One set of keybindings to open/close folds across a wide range of modes, including markdown-mode, outline-mode and org-mode.

This is my general.el setup for kirigami

 ;; kirigami
  "k" '(nil :which-key "kirigami")
  "kc" '(kirigami-close-folds :which-key "close all")
  "ko" '(kirigami-open-folds :which-key "open all")
  "kp" '(kirigami-open-fold :which-key "open at point")
  "kr" '(kirigami-open-fold-rec :which-key "open rec")
  "kt" '(kirigami-toggle-fold :which-key "toggle folds")

Visible Marks

visible-mark - MELPA and ideasman42/emacs-visible-mark - Codeberg.org Minor mode to highlight mark(s). Allows setting the number of marks to display, and the faces to display them.

These are my settings for visual-mark

(defface visible-mark-active
  '((((type tty) (class mono)))
    (t (:background "magenta"))) "")
(setq visible-mark-max 2)
(setq visible-mark-faces `(visible-mark-face1 visible-mark-face2))
(use-package visible-mark
  :ensure t)
(global-visible-mark-mode 1)

Note: Added on 2026-03-27. This slows down my instance of Emacs and I disabled it. Useful idea but not for me.

Javelin

DamianB-BitFlipper/javelin.el at 9516e3729b8cd85d6b02fd1940ec10638c6706cb

Described by the author as “Quick file bookmarks for Emacs, inspired by ThePrimeagen’s Harpoon. Pin files to numbered positions (1-9) for instant access. Positions are automatically separated by project and git branch.”

I like it. The only problem is that the list doesn’t last across restarts of Emacs. Have to figure out how to achieve that.

OPML to Org-mode

I bought OmniOutliner 6 Pro. That produces OPML files. I wanted to be able to convert them to Org-mode. Gemini helped.

;; Converting OPML to Org-mode

(defun my/opml-to-org-with-notes (opml-file)
  "Convert an OPML file's 'outline' elements and their notes into Org-mode."
  (interactive "fSelect OPML file: ")
  (let* ((xml (xml-parse-file opml-file))
         ;; Standard OPML structure is <opml><body>...</body></opml>
         (body (car (xml-get-children (car xml) 'body)))
         (outlines (xml-get-children body 'outline))
         (new-buf (generate-new-buffer "*OPML Import with Notes*")))
    (with-current-buffer new-buf
      (org-mode)
      (cl-labels ((parse-outline (nodes level)
                    (dolist (node nodes)
                      (let* ((attrs (xml-node-attributes node))
                             (text (cdr (assoc 'text attrs)))
                             (note (or (cdr (assoc '_note attrs)) 
                                       (cdr (assoc 'description attrs))))
                             (children (xml-get-children node 'outline)))
                        ;; Create Heading
                        (insert (make-string level ?*) " " (or text "Untitled") "\n")
                        ;; Insert Note (if it exists)
                        (when note
                          (insert note "\n"))
                        ;; Recurse for nested nodes
                        (when children
                          (parse-outline children (1+ level)))))))
        (parse-outline outlines 1))
      (goto-char (point-min)))
    (switch-to-buffer new-buf)))

Appine

chaoswork/appine: Appine

“Appine means”App in Emacs”, which is an Emacs plugin using a Dynamic Module that allows you to embed native macOS views (WebKit, PDFKit, Quick look PreviewView, etc.) directly inside Emacs windows.”

This is my Appine setup:

;; appine
(use-package appine
  :straight (appine :type git :host github :repo "chaoswork/appine")
  :custom
  ;; enables opening URLs and files with Appine, default is nil
  (appine-enable-open-in-org-mode nil) 
  :config
  ;; Optional: Set default keybindings
  (global-set-key (kbd "C-x a w") 'appine-open-web-split)
  (global-set-key (kbd "C-x a o") 'appine-open-file-split))

Turned off (appine-enable-open-in-org-mode nil). I don’t want links to be opened in org-mode without me specifically wanting it. When the link opens in Emacs, I don’t have the ability to zoom in/out. I am old, I need that for most sites.

My general.el setup for Appine.

  ;; Windows
  "w" '(nil :which-key "window")
  "ww" '(appine-open-web-split :which-key "appine-web")
  "wf" '(appine-open-file-split :which-key "appine-file")

buffer-guardian

buffer-guardian.el – Automatically Save Emacs Buffers Without Manual Intervention (When Buffers Lose Focus, Regularly, or After Emacs is Idle) | James Cherti

Saves you from having to continuously save your document. It automatically saves when the buffer loses focus.

There is an alternative to this package, super-save 0.5: Modernized and Better Than Ever | Emacs Redux.

My setup for buffer-guardian is:

(use-package buffer-guardian
  :custom
  ;; When non-nil, include remote files in the auto-save process
  (buffer-guardian-inhibit-saving-remote-files nil)

  ;; When non-nil, buffers visiting nonexistent files are not saved
  (buffer-guardian-inhibit-saving-nonexistent-files t)

  ;; Save the buffer even if the window change results in the same buffer
  (buffer-guardian-save-on-same-buffer-window-change t)

  ;; Non-nil to enable verbose mode to log when a buffer is automatically saved
  (buffer-guardian-verbose nil)

  ;; Save all buffers after N seconds of user idle time. (Disabled by default)
  ;; (buffer-guardian-save-all-buffers-idle 30)

  :hook
  (after-init . buffer-guardian-mode))

isearch-lazy-count

isearch-lazy-count: Built-in Search Match Counting | Emacs Redux

This is useful. My setup:

#+begin_src emacs-lisp
;;customizing isearch
(setopt isearch-lazy-count t)
(setopt lazy-count-prefix-format nil)
(setopt lazy-count-suffix-format " [%s/%s]")
#+end_src

markdown-table-wrap

dnouri/markdown-table-wrap at 71a1cec53bf9d7875126b4cd557b2c00ae52b576

Markdown tables wrapped to a defined character width.

My setup:

#+begin_src emacs-lisp
;; markdown-table-wrap
(use-package markdown-table-wrap
  :ensure t
  :config
  (markdown-table-wrap table-text 60))
#+end_src

surround.el

surround.el: Vim-Style Pair Editing Comes to Emacs | Emacs Redux

Useful package to delete paired delimiters.

My setup:

#+begin_src emacs-lisp
(use-package surround
  :ensure t
  :bind-keymap ("M-'" . surround-keymap))
#+end_src

Conclusion

Using Emacs every day. My comfort with the program is increasing. I am learning and I am having a blast. That is all I have for now.

macosxguru


emacs


Previous post
general.el to Conquer Emacs Keybindings noctuid/general.el: More convenient key definitions in emacs, is a critical package for my usage of Emacs. One of the features of Emacs is the
Next post
Expanding with Typinator 10 Product: Typinator Price: $49.99 (one time for macOS only) or $29.99/yearly (for macOS and iOS version) I was a TextExpander user and switched from