/
startup-python.el
33 lines (29 loc) · 1.16 KB
/
startup-python.el
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
32
33
;;;; Python
;;; PyMacs
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-exec "pymacs" nil t)
(autoload 'pymacs-load "pymacs" nil t)
(eval-after-load "pymacs"
'(progn
(if window-system (require 'fixpath))))
;;; Flymake-Pylint
;; (eval-after-load "flymake"
;; '(progn
;; (defun flymake-pylint-init ()
;; (if window-system (require 'fixpath))
;; (local-set-key (kbd "C-.") 'flymake-goto-next-error-with-display)
;; (local-set-key (kbd "C->") 'flymake-goto-prev-error-with-display)
;; (let* ((temp-file (flymake-init-create-temp-buffer-copy
;; 'flymake-create-temp-inplace))
;; (local-file (file-relative-name
;; temp-file
;; (file-name-directory buffer-file-name))))
;; (list (concat emacs-root-p "support/epylint2.py") (list local-file))))
;; (add-to-list 'flymake-allowed-file-name-masks
;; '("\\.py\\'" flymake-pylint-init))))
;; (add-hook 'python-mode-hook
;; '(lambda ()
;; (flymake-mode t)
;; ))