From b71ee754c71a1d6c83f99baa949998711ddb3003 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 11 Feb 2026 19:05:13 -0800 Subject: [PATCH] org-agenda-api: guard yas disable hook in container config --- org-agenda-api/configs/colonelpanic/custom-config.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org-agenda-api/configs/colonelpanic/custom-config.el b/org-agenda-api/configs/colonelpanic/custom-config.el index 3bc16763..ee47113a 100644 --- a/org-agenda-api/configs/colonelpanic/custom-config.el +++ b/org-agenda-api/configs/colonelpanic/custom-config.el @@ -65,6 +65,13 @@ (when (file-exists-p (expand-file-name "overrides.el" config-dir)) (load (expand-file-name "overrides.el" config-dir)))) +;; Some org-config hooks call imalison:disable-yas. In the container, yasnippet +;; may not be installed, so guard this helper to avoid startup crashes. +(defun imalison:disable-yas () + "Disable yas minor mode only when available." + (when (fboundp 'yas-minor-mode) + (yas-minor-mode -1))) + ;; Define no-op stubs for unavailable packages (overwrite autoloads) (defun org-bullets-mode (&optional _arg) "No-op stub for org-bullets-mode (package not available in container)."