0

really new to spacemacs, I want to open a link (which is a file stored somewhere on my computer and the full path is used) inserted into org-mode file of spacemacs with the default application of such file, say excel, rather than within spacemacs. I searched up online, it seems like below is the solution: (setq org-file-apps '("\\.xlsx\\'" . "excel %s")),but this throw out the error :

wrong type argument: listp "excel $s".

See these links for your reference and any helpful suggestion is deeply appreciated.

I'm on the latest develop branch of spacsmacs, if this is of any use.

link_1, link_2, link_3

1

The documentation says that org-file-apps should be a list of cons cells but you have supplied a single cell instead. Solution: one more set of parens:

(setq org-file-apps '(("\\.xlsx\\'" . "excel %s")))

You now have a list containing a single cons cell and org-file-apps should be happy.

| improve this answer | |
  • In the buffer, the linked .xlsx file still opened in another buffer, but in exported html, it will download the linked file. – Jason Goal Jan 24 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.