Vladimir Lomov <[email protected]> writes:
> #+BEGIN_SRC emacs-lisp :tangle org-apps-c.el
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/org")
> (require 'org)
> (setq org-file-apps
> '( ("\\.pdf::\\(\\d+\\)\\'" . "run-me --page %1 %s")
> ("\\.pdf\\'" . "run-me %s")
> )
> )
> #+END_SRC
>
\d is Perl regexp syntax for matching a digit, but (afaik) not emacs
syntax. Try
> '( ("\\.pdf::\\([0-9]+\\)\\'" . "run-me --page %1 %s")
or
> '( ("\\.pdf::\\([[:digit:]]+\\)\\'" . "run-me --page %1 %s")
instead.
--
Nick