Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
8f0f99121f
|
|||
|
81212e7c60
|
|||
|
c32fc49d3d
|
|||
|
e67035032f
|
@@ -1,6 +1,7 @@
|
||||
#+title: org-unique-id
|
||||
#+author: Lucien Cartier-Tilet
|
||||
#+email: lucien@phundrak.com
|
||||
[[https://github.com/Phundrak/org-unique-id/actions/workflows/workflow.yml][file:https://github.com/Phundrak/org-unique-id/actions/workflows/workflow.yml/badge.svg]]
|
||||
|
||||
* Introduction
|
||||
~org-unique-id~ is a utility package for org users that are tired
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
|
||||
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
|
||||
;; Version: 0.3.0
|
||||
;; Version: 0.3.1
|
||||
;; Package-Requires: ((emacs "25.1") (org "9.3"))
|
||||
;; Homepage: https://labs.phundrak.com/phundrak/org-unique-id
|
||||
;; Keywords: convenience
|
||||
@@ -127,13 +127,14 @@ somewhere, i.e. #+OPTIONS: auto-id:t"
|
||||
This function executes `org-unique-id' when the buffer’s major
|
||||
mode is `org-mode', when the buffer is not read-only, and if
|
||||
\\='auto-id:t\\' is found in an #+OPTIONS line."
|
||||
(let ((case-fold-search t))
|
||||
(interactive)
|
||||
(when (and (eq major-mode 'org-mode)
|
||||
(eq buffer-read-only nil)
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(let ((case-fold-search t))
|
||||
(re-search-forward "^#\\+OPTIONS:.*auto-id:t" (point-max) t))))
|
||||
(org-unique-id))))
|
||||
(org-unique-id)))
|
||||
|
||||
(provide 'org-unique-id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user