Add '.py' and '.sh' as allowed executable extension.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 04 Jan 2012 17:10:55 +0200
changeset 858 81c925713d9c
parent 857 05db92f1e97d
child 859 0d89e5e07baa
Add '.py' and '.sh' as allowed executable extension.
.emacs-my
--- a/.emacs-my	Wed Jan 04 00:33:56 2012 +0200
+++ b/.emacs-my	Wed Jan 04 17:10:55 2012 +0200
@@ -354,6 +354,12 @@
   (modify-coding-system-alist 'process "gnutls-cli" '(binary . binary))
   )
 
+(when (eq window-system 'w32)
+  (add-to-list 'exec-suffixes ".py")
+  (add-to-list 'exec-suffixes ".sh")
+  (defun executable-find (command) (locate-file command exec-path exec-suffixes))
+  )
+
 (ansi-color-for-comint-mode-on)
 
 (setq explicit-bash-args '("-i"))