emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-babel-sh and Microsoft Windows


From: Eric Schulte
Subject: Re: [Orgmode] org-babel-sh and Microsoft Windows
Date: Sun, 07 Feb 2010 09:41:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Hi Mike,

The command used by org-babel-sh is now configurable through the
`org-babel-sh-command' variable so you should be able to set it in your
initialization using a line like the following

(setq org-babel-sh-command "cmd /k")

Best -- Eric

,----[org-babel-sh-command]
| org-babel-sh-command is a variable defined in `org-babel-sh.el'.
| Its value is "sh"
| 
|   This variable is potentially risky when used as a file local variable.
| 
| Documentation:
| Command used to invoke a shell.  This will be passed to
|   `shell-command-on-region'
`----

Michael Gauland <address@hidden> writes:

> I tried using org-babel-sh at work, where I run emacs under Microsoft Windows,
> but only received an oddly-formatted message about (quote sh) not being
> recognised as a command. After mucking around with org-babel-sh.el, I modified
> the call to shell-command-on-region, changing the hard-coded "sh" to (as I
> recall) "cmd /k"). This looks promising, but I wonder if there are any other
> changes I'll need to make. Also, would it be better to adapt org-babel-sh to
> handle Microsoft's "shell", or to implement a new org-babel "language"?
>
> Thanks for your advice,
> Mike
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]