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?
#+begin_src emacs-lisp (let ((cons-pair '("foo bar loo" "file:x"))) (replace-regexp-in-string "[[:space:]]" "_" (car cons-pair))) #+end_src #+results: : foo_bar__loo -- cheers, Thorsten