|
From: | matt |
Subject: | Re: eshell - win32 - executable files |
Date: | Sun, 19 Jan 2003 07:04:54 GMT |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 |
John Wiegley wrote:
On Sat Jan 18, matt writes:This may be something that I need to do in the Windows registry, but... How can I specify which files are executable. On a windows system there are the normal ones like .exe, .bat, .com, etc. What I want to do is to tell emacs that another type of file is executable, so that I can just type the filename and have it execute like any other command. Specifically, a perl script. I want to be able to execute say "myscript.pl" without having to type: perl path_to_script/myscript.pl. I have the file association set in explorer, and the path to the script is in my path. I can execute it in cmd.exe by typing myscript.pl, but not in eshell.Any ideas?Configure the variable `eshell-binary-suffixes'. John
Thanks John. How do I do that? What I've done is not working. I found 'eshell-binary-suffixes' in esh-ext.el, looks like this:
(defcustom eshell-binary-suffixes (if (eshell-under-windows-p) '(".exe" ".com" ".bat" ".cmd" "") '("")) "*A list of suffixes used when searching for executable files."I added ".pl" to the list. I tried load-file, load-library, and emacs-lisp-byte-compile-and-load. No luck. Is there somewhere else I should be setting this?
Thanks -- Matt -- Remove the X's to reply directly.
[Prev in Thread] | Current Thread | [Next in Thread] |