Ihor Radchenko <yanta...@gmail.com> writes: I've moved the project to gitlab:
https://gitlab.com/tygrdev/org-todo-link > Why don't just modify :activate-func in the ordinary file links? I like this idea, in fact so much I got rid of the todo style link. But one thing that's still problematic is that I'd like org-todo-link-mode to be a local mode but for some reason make-local-variable isn't working how I expect for org-link-parameters: (define-minor-mode org-todo-link-mode "Display TODO keyword, if it exists, for all file+heading links." :lighter " todo-link" (if org-todo-link-mode (progn (make-local-variable 'org-link-parameters) (org-link-set-parameters "file" :activate-func #'org-todo-link-activate) (org-restart-font-lock)) (kill-local-variable 'org-link-parameters) (org-with-wide-buffer (mapc #'delete-overlay (seq-filter (lambda (ov) (overlay-get ov 'ol-todo)) (overlays-in (point-min) (point-max))))) (org-restart-font-lock))) What I expect to happen is that in the current buffer, the file link type will have the activate-func, but in other buffers not. Instead org-link-parameters is modified globally. Maybe this is a better question for emacs-devel, but do you know of a way to set org-link-parameters buffer-locally?