From 19619813d1fa956f2970ae058c70d49e0c1b28ac Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 11 Jun 2024 17:28:03 +0100 Subject: (Emacs/elisp)~org-bookmark now auto loads required org functions Instead of (require 'org) which loads the entire thing and is quite expensive, let's autoload what we need. In the config we load org-bookmark before org-mode so we may as well do this. It's also just good practice regardless. --- Emacs/.config/emacs/elisp/org-bookmark.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/elisp/org-bookmark.el b/Emacs/.config/emacs/elisp/org-bookmark.el index 192a75d..e4189f8 100644 --- a/Emacs/.config/emacs/elisp/org-bookmark.el +++ b/Emacs/.config/emacs/elisp/org-bookmark.el @@ -23,7 +23,10 @@ ;;; Code: -(require 'org) +(autoload #'org-heading-components "org") +(autoload #'org-get-tags "org") +(autoload #'org-entry-get "org") +(autoload #'org-make-tags-matcher "org") (defvar +bookmark/file (expand-file-name (concat org-directory "/bookmarks.org"))) (defvar +bookmark/mpv-args "--ytdl-raw-options=force-ipv4= --ytdl-format=22 -v") -- cgit v1.2.3-13-gbd6f