(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.
This commit is contained in:
2024-06-11 17:28:03 +01:00
parent 3cb1a2b616
commit 19619813d1

View File

@@ -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")