(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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user