Mikey Boldt About Contact

Linking to MS Office File in Emacs Org Mode

· Tech

My daily workflow includes emacs org mode files for each project I’m working on. I often link to files, programs, etc. from these org mode files. I tried linking to a MS Excel spreadsheet using my usual

file:/path/to/file.xlsx

link. However, since the xlsx file is really a zip file, emacs opened a dired buffer revealing the contents, rather than opening it in Excel.

After a bit of googling, I found a message from the org mode mailing list about linking to Excel and Word documents from org mode and discovered the file+sys link type. This, per the org mode External Links manual, will “open via OS, like double-click”, which is exactly what I want. Good reminder for myself: when all else fails, RTFM.

Comments

Joao Brito · 2013-12-27

tks. I’d never noticed file+sys type of link, although I’ve already lost some precious hours trying to handle this kind of situation.

eliaso · 2014-04-30

thanks, TFM is too big

Ricardo Orbegozo · 2019-08-23

Your postr is still valid, and, as Joao, I lost precious time setting org-file-apps to open xlsx files in excel and now I find your solution more accurate, thank you for sharing

Tags: Emacs, Msoffice, Orgmode