-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy-python.el
More file actions
31 lines (28 loc) · 948 Bytes
/
Copy pathmy-python.el
File metadata and controls
31 lines (28 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;; -*- coding:utf-8 -*-
;; python
;;
;; as is 2013/09/26 bankrup'd old python trials and then started with
;; extremely simple configuration for study
;; (eval-after-load "python"
;; '(progn
;; (cond
;; (win32p (setq python-shell-interpreter "c:/python27/python.exe")))
;; (defun my-python-shell-send-buffer (prefix)
;; (interactive "P")
;; (let ((source-window (selected-window)))
;; (call-interactively 'run-python)
;; (select-window source-window)
;; ;; (switch-to-buffer source-window)
;; (call-interactively 'python-shell-send-buffer)))
;; (defun my-python-hook ()
;; ;; (define-key python-mode-map "\C-m" 'newline-and-indent)
;; (define-key python-mode-map "\C-c\C-a" 'my-python-shell-send-buffer)
;; )
;; (add-hook 'python-mode-hook 'my-python-hook)
;; )
;; )
(when (my-try-require 'jedi)
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)
)
(provide 'my-python)