tom <scraw...@gmail.com> writes: > hi guys, > > I have this: > > (setq org-link-abbrev-alist > '(("foo" . "file:/path/to/%(myfun).txt"))) > > I'm trying to have "myfun" replace any spaces in the tag with > underscores, but I'm not having much luck. Would someone mind giving > me a hint? > > Thanks.
You might consider using the built-in `org-link-escape', it's likely to do everything you need, and it's battle-tested!