Move known links to front of link list only in older Org versions
This behavior became the default in Org 9.7.
This commit is contained in:
parent
de68fc30b2
commit
01a71c93d2
6
init.el
6
init.el
@ -827,6 +827,10 @@
|
||||
:autoload (org-link-set-parameters)
|
||||
:config (progn
|
||||
|
||||
(when (version< (org-version) "9.7")
|
||||
;; Pushing already stored links to the front of `org-stored-links' became default
|
||||
;; behavior in Org 9.7, the below code is thus only needed for older versions.
|
||||
|
||||
(define-advice org-store-link (:around
|
||||
(orig-func &rest args)
|
||||
db/org--push-new-links-to-beginning)
|
||||
@ -865,7 +869,7 @@
|
||||
(member x org-stored-links--new))
|
||||
org-stored-links--original))))
|
||||
|
||||
org-store-link--return-value))
|
||||
org-store-link--return-value)))
|
||||
|
||||
(define-advice org-link-make-string (:around
|
||||
(orig-func link &optional description)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user