mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
Add modules/lang/org (WIP)
This commit is contained in:
10
modules/lang/org/autoload/util.el
Normal file
10
modules/lang/org/autoload/util.el
Normal file
@@ -0,0 +1,10 @@
|
||||
;;; emacs/org/autoload/util.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-get-property (name &optional file)
|
||||
"Get a propery from an org file."
|
||||
(save-excursion
|
||||
(goto-char 1)
|
||||
(re-search-forward (format "^#\\+%s:[ \t]*\\([^\n]+\\)" (upcase name)) nil t)
|
||||
(buffer-substring-no-properties (match-beginning 1) (match-end 1))))
|
||||
|
Reference in New Issue
Block a user