tecosaur / org-pandoc-import

Mirror of https://git.tecosaur.net/tec/org-pandoc-import
GNU General Public License v3.0
245 stars 14 forks source link

Should Emacs `cd` to imported file for `pandoc` #13

Closed PRESFIL closed 2 years ago

PRESFIL commented 2 years ago

Some pandoc switches (--extract-media=) may contain relative paths, and if you don't go to the folder with the imported file, pandoc will inherit the current Emacs working folder and work with / clutter a random directory (usually ~ or ~/.emacd.d or ~/.config/emacs). Should Emacs switch this directory somehow?

tecosaur commented 2 years ago

Done in d3cd2b0519b53766a5454155b012e0a75e139ade.