Commit e430ea52f6f4

Vincent Demeester <vincent@sbr.pm>
2026-03-26 12:06:25
fix(emacs): load org-capture eagerly, fix recentf typo
Loaded org-capture with :demand t so capture templates are available for raffi/emacsclient queries on fresh daemon starts. Fixed typo 'after-nit' → 'after-init' that prevented recentf-mode from ever activating.
1 parent 6f382bd
Changed files (1)
dots
config
emacs
dots/config/emacs/init.el
@@ -627,7 +627,7 @@ minibuffer, even without explicitly focusing it."
 (use-package recentf
   :defer t
   :hook
-  (after-nit . recentf-mode)
+  (after-init . recentf-mode)
   :bind (("C-x C-r" . recentf-open)))
 
 (use-package prog-mode
@@ -2037,7 +2037,7 @@ Prompts for URL with clipboard as default.  Suitable for %(sexp) in capture temp
       (buffer-string))))
 
 (use-package org-capture
-  :commands (org-capture)
+  :demand t ;; Load eagerly so org-capture-templates is available for raffi/emacsclient queries
   :bind (("C-c o c" . org-capture))
   :config
   (add-to-list 'org-capture-templates