aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-06-10 23:48:31 -0700
committerGravatar Tom Willemse2026-06-10 23:48:31 -0700
commit033336510af4cfeba7f5c016172e79491c892389 (patch)
tree6f6f177de97b4f815d9300ed67ea2de80b6596ac
parente4b7c814b23701f197ac2d813b3d3c25f8ae6089 (diff)
downloademacs-config-033336510af4cfeba7f5c016172e79491c892389.tar.gz
emacs-config-033336510af4cfeba7f5c016172e79491c892389.zip
oni-org: Remove yasnippet dependency
The snippets are now part of oni-yasnippet instead.
-rw-r--r--oni-org/oni-org.el17
1 files changed, 1 insertions, 16 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index a21b706..eb0fe81 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -5,7 +5,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2026.0529.072432
-;; Package-Requires: (oni-yasnippet oni-hydra org org-edna diminish olivetti org-pretty-table)
+;; Package-Requires: (oni-hydra org org-edna diminish olivetti org-pretty-table)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -49,7 +49,6 @@
(require 'org-roam)
(require 'range)
(require 'subr-x)
-(require 'yasnippet)
;;; Constants
@@ -59,10 +58,6 @@
(buffer-file-name)))
"The directory where ‘oni-org’ was loaded from.")
-(defconst oni-org-snippets-dir
- (expand-file-name "snippets" oni-org-root)
- "The directory where ‘oni-org’ stores its snippets.")
-
(defconst oni-org-icons-dir
(expand-file-name "icons" oni-org-root)
"The directory where ‘oni-org’ stores its icons.")
@@ -152,12 +147,6 @@ located at the start of the line."
(setq-local yas-buffer-local-condition
'(looking-back (rx line-start (one-or-more (not space))))))
-(defun oni-org-snippets-initialize ()
- "Initialize the snippets for ‘oni-org’."
- (when (boundp 'yas-snippet-dirs)
- (add-to-list 'yas-snippet-dirs oni-org-snippets-dir t))
- (yas-load-directory oni-org-snippets-dir))
-
(defun oni-org-maybe-change-to-wip-state (current-state)
"Change the state of the current task to in-progress CURRENT-STATE is todo."
(if (and (not org-capture-mode)
@@ -385,10 +374,6 @@ and not a state update."
;;;###autoload
(global-set-key (kbd "C-<home>") #'oni-org-open-index)
-(with-eval-after-load 'org
- (with-eval-after-load 'yasnippet
- (oni-org-snippets-initialize)))
-
(with-eval-after-load 'org-edna (diminish 'org-edna-mode))
(with-eval-after-load 'org-id