May 31st 2026 - Things I Worked On

Installed Magit

Thought I would give it another chance. Seems nice so far.

Installation

(unless (package-installed-p 'magit)
  (package-install 'magit))

(require 'magit)

Display Magit Full Frame

(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)

Keybindings

(evil-leader/set-key
"g g" 'magit)

Added abbrevs for blog index posts

I wanted a fast way to insert common blog post names into my index.org file so I created some abbrevs. I then added the ability for users to add their own custom abbrevs to the blogging framework I'm creating.

The config code:

(blog-set-index-abbrevs
 '(("IF" "- Interesting Finds")
   ("TIWO" " - Things I Worked On")
   ("RS" "- Reading Summary")
   ("WR" "- Weekly Roundup")))

(setq save-abbrevs nil)

Blog.el code

(defvar blog-index-abbrev-table nil
  "Abbrev table for index.org only.")

(defun blog-set-index-abbrevs (abbrevs)
  "Set the index abbreviations and expansions."
  (define-abbrev-table 'blog-index-abbrev-table
    abbrevs :case-fixed t))

(defun blog--blog-index-abbrevs ()
  "Enable abbrev-mode and use the custom table only in index.org."
  (when (and (buffer-file-name)
             (string-match-p "index.org" (buffer-file-name)))
    (abbrev-mode 1)
    (setq local-abbrev-table blog-index-abbrev-table)))

(add-hook 'org-mode-hook #'blog--blog-index-abbrevs)