Quellcode durchsuchen

add python-mode pref

pull/1/head
10sr vor 12 Jahren
Ursprung
Commit
424fbfdcae
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. +10
    -0
      emacs.el

+ 10
- 0
emacs.el Datei anzeigen

@@ -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 "<up>") 'comint-previous-input)
(define-key inferior-python-mode-map (kbd "<down>") 'comint-next-input)))



Laden…
Abbrechen
Speichern