Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitpick: Make org-super-links-convert-link-to-super argument optional #97

Open
meedstrom opened this issue Aug 18, 2024 · 0 comments
Open

Comments

@meedstrom
Copy link

meedstrom commented Aug 18, 2024

I propose changing the arglist for function org-super-links-convert-link-to-super into (&optional arg). That way, I can hook it on org-node link insertion

(add-hook 'org-node-insert-link-hook #'org-super-links-convert-link-to-super)

without writing a wrapper. That'll look nice.

Right now I have this wrapper

(defun org-node-convert-link-to-super ()
  "Call `org-super-links-convert-link-to-super' with nil argument."
  (require 'org-super-links)
  (when (fboundp 'org-super-links-convert-link-to-super)
    (org-super-links-convert-link-to-super nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant