unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to get markdown preview mode working on Linux?
@ 2016-05-19 17:56 David M. Karr
  2016-05-19 18:03 ` Kaushal Modi
  0 siblings, 1 reply; 3+ messages in thread
From: David M. Karr @ 2016-05-19 17:56 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to get some sort of Markdown preview mode working on my Linux 
laptop.

I installed the the three main "markdown" packages ("markdown-mode", 
"markdown-mode+", and "markdown-preview-mode"). While viewing a markdown 
file that I've created (almost empty), I pressed the key bound to 
"markdown-preview".  It brought up a browser page that said exactly this:
-----------------
  /usr/bin/bash: markdown: command not found
-----------------

I read the README on the github page for markdown-preview-mode, and it 
doesn't really say much.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get markdown preview mode working on Linux?
  2016-05-19 17:56 How to get markdown preview mode working on Linux? David M. Karr
@ 2016-05-19 18:03 ` Kaushal Modi
  2016-05-19 18:11   ` David M. Karr
  0 siblings, 1 reply; 3+ messages in thread
From: Kaushal Modi @ 2016-05-19 18:03 UTC (permalink / raw)
  To: David M. Karr, help-gnu-emacs

On Thu, May 19, 2016 at 1:57 PM David M. Karr <davidmichaelkarr@gmail.com>
wrote:

> -----------------
>   /usr/bin/bash: markdown: command not found
> -----------------
>

Well, I have the markdown binary preinstalled on my system in
/usr/bin/markdown.

Would do you get when you do "which markdown" in your terminal? .. Looks
like you do not have that binary preinstalled.

In that case, download the Markdown source script from
http://daringfireball.net/projects/markdown/, extract the .pl from that and
place it in one of the folders in the environment PATH variable. Or add
that dir to the PATH var and restart emacs.

I have the following in my config.

    (when (executable-find "Markdown.pl")
      (setq markdown-command "Markdown.pl"))

If everything went fine, you should see "Markdown.pl" when you do C-h v
markdown-command.
-- 

-- 
Kaushal Modi


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get markdown preview mode working on Linux?
  2016-05-19 18:03 ` Kaushal Modi
@ 2016-05-19 18:11   ` David M. Karr
  0 siblings, 0 replies; 3+ messages in thread
From: David M. Karr @ 2016-05-19 18:11 UTC (permalink / raw)
  To: Kaushal Modi, help-gnu-emacs

On 05/19/2016 11:03 AM, Kaushal Modi wrote:
> On Thu, May 19, 2016 at 1:57 PM David M. Karr 
> <davidmichaelkarr@gmail.com <mailto:davidmichaelkarr@gmail.com>> wrote:
>
>     -----------------
>       /usr/bin/bash: markdown: command not found
>     -----------------
>
>
> Well, I have the markdown binary preinstalled on my system in 
> /usr/bin/markdown.
>
> Would do you get when you do "which markdown" in your terminal? .. 
> Looks like you do not have that binary preinstalled.

I suppose I thought it was obvious that I don't have a "markdown" 
executable.  I should have been more explicit about that.
>
> In that case, download the Markdown source script from 
> http://daringfireball.net/projects/markdown/, extract the .pl from 
> that and place it in one of the folders in the environment PATH 
> variable. Or add that dir to the PATH var and restart emacs.

It's funny that none of the markdown preview docs even mentions this.  
Does everyone assume this is always there?
>
> I have the following in my config.
>
>     (when (executable-find "Markdown.pl")
>       (setq markdown-command "Markdown.pl"))
> If everything went fine, you should see "Markdown.pl" when you do C-h 
> v markdown-command.

Yup, that worked fine, thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-19 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-19 17:56 How to get markdown preview mode working on Linux? David M. Karr
2016-05-19 18:03 ` Kaushal Modi
2016-05-19 18:11   ` David M. Karr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).