(setq pandoc-binary "/usr/local/bin/pandoc")
This answer assumes you do not have a folder named pandoc
inside of /usr/local/bin/
and that the actual executable has an absolute path of /usr/local/bin/pandoc
. If the executable is buried deeper in another folder or more, then adjust the path in this example accordingly. The code at the top of this answer goes in your .emacs
file.
You may also wish to modify this variable depending upon your preferred setup:
(setq pandoc-data-dir "~/.emacs.d/pandoc-mode/")