branch: elpa/powershell
commit b197e7954f7eceba9202fe594fd603eafb57cd0a
Merge: cbbf9f785e3 461d0d5a482
Author: Joe Schafer <[email protected]>
Commit: Joe Schafer <[email protected]>
Merge pull request #3 from jschaf/add-exe-args
re-add explicit-powershell.exe-args
---
powershell.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/powershell.el b/powershell.el
index 0ae0dcb8e79..4e9216dc23b 100644
--- a/powershell.el
+++ b/powershell.el
@@ -107,6 +107,17 @@ Ending either with an explicit backtick, or with a pipe."
:type 'integer
:group 'powershell)
+;; Note: There are no explicit references to the variable
+;; `explicit-powershell.exe-args'. It is used implicitly by M-x shell
+;; when the shell is `powershell.exe'. See
+;;
http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/10/run-powershell-as-a-shell-within-emacs.aspx
+;; for details.
+(defcustom explicit-powershell.exe-args '("-Command" "-" )
+ "Args passed to inferior shell by \\[shell], if the shell is powershell.exe.
+Value is a list of strings, which may be nil."
+ :type '(repeat (string :tag "Argument"))
+ :group 'powershell)
+
(defun powershell-continuation-line-p ()
"Return t is the current line is a continuation line.
The current line is a continued line when the previous line ends