sometimes I reach a bug when org-super-links-store-link ~ This link has already been stored
pedro-nonfree opened this issue · 0 comments
pedro-nonfree commented
Going very fast around this problem. Sometimes I reached a bug that is only solved when I restart emacs. And I found a solution, and is to cleanup the org-stored-links
variable, which looks like a list of stored links. Because anyway, I am not using the insert link list, so I just need to most immediate one, and reaching the "This link has already been stored" means that it could paste a very weird unusable link which drives me crazy
I am on org version 9.6.9
this is the patch I am applying to my config, sharing all org-super-links config because is very easy-straightforward in my case
(use-package org-super-links
:straight (org-super-links :type git :host github :repo "toshism/org-super-links" :branch "develop"))
-(global-set-key (kbd "C-c l" 'org-super-links-store-link))
+(global-set-key (kbd "C-c l") (lambda() (interactive) (progn (setq org-stored-links nil) (org-super-links-store-link))))
(with-eval-after-load "org"
(define-key org-mode-map (kbd "C-c C-l") 'org-super-links-insert-link))