From 424fbfdcae4548b9fd1cc7f733356b477b50de5c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 2 Feb 2012 21:36:34 +0900 Subject: [PATCH] add python-mode pref --- emacs.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs.el b/emacs.el index f5dacdd..03d39d4 100644 --- a/emacs.el +++ b/emacs.el @@ -603,8 +603,18 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB." (shell-command (buffer-substring-no-properties (point-at-bol) (point)))) +(add-hook 'python-mode-hook + (lambda () + ())) + +(defun my-python-run-as-command () + "" + (interactive) + (shell-command (concat python-command " " buffer-file-name))) + (add-hook 'inferior-python-mode-hook (lambda () + (set-window-text-height (display-buffer (current-buffer) t) 7) (define-key inferior-python-mode-map (kbd "") 'comint-previous-input) (define-key inferior-python-mode-map (kbd "") 'comint-next-input)))