-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_python.elc
32 lines (28 loc) · 3.69 KB
/
init_python.elc
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
;ELC
;;; Compiled by [email protected] on Fri Oct 1 12:32:05 2010
;;; from file /Users/oceanhug/.emacs.d/init_python.el
;;; in Emacs version 22.3.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`init_python.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#@14 Python Mode.
(autoload 'python-mode "python-mode" '(#$ . 599) t)
(byte-code "\301\302\303\"\210\301\304\305\"\210\306\307!\210\310\311\312\"\210\313\314\315\"\210\313\316\315\"\210\313\317\315\320\321$\210\313\322\315\320\321$\210\313\323\315\320\321$\210\323\324\325\"\210\321\320\207" [ropemacs-enable-autoimport add-to-list auto-mode-alist ("\\.py\\'" . python-mode) interpreter-mode-alist ("python" . python-mode) require python-mode add-hook python-mode-hook #[nil "\301\302\303\"\210\301\304\305\"\210\306\307\310#\210\311 \207" [py-mode-map set-variable py-indent-offset 4 indent-tabs-mode nil define-key "" newline-and-indent smart-operator-mode-on] 4] autoload pymacs-apply "pymacs" pymacs-call pymacs-eval nil t pymacs-exec pymacs-load "ropemacs" "rope-"] 5)
(defalias 'prefix-list-elements #[(list prefix) "\305 \305\211\203 @\306\307\f\n#BA\211\204\n \305*\237)\207" [value list element #1=#:--cl-dolist-temp-- prefix nil format "%s%s"] 5])
#@17 Source for Rope
(defvar ac-source-rope '((candidates lambda nil (prefix-list-elements (rope-completions) ac-target))) (#$ . 1573))
#@28 Python `ac-find-function'.
(defalias 'ac-python-find #[nil "\301\302!\210\303\300!\242\211\204 `S`{\304\230\205 `\202 )\207" [symbol require thingatpt bounds-of-thing-at-point "."] 3 (#$ . 1710)])
#@33 Python `ac-candidates-function'
(defalias 'ac-python-candidate #[nil "\306 \306\211\203c @\2119\203 \nJ\307\n\236\243\206 \f\305\n\236\243\306\2032 GY\203? \310\306\311\312\300\n\236A \"\"\f\313V\203U G\fV\203U \fS\233\306\241\210\314\"+A\211\204\n *\315!)\207" [candidates ac-sources source #1=#:--cl-dolist-temp-- ac-limit requires nil limit delq mapcar #[(candidate) "\302\301 #\207" [candidate source propertize] 4] 1 append delete-dups cand ac-target] 7 (#$ . 1918)])
(add-hook 'python-mode-hook #[nil "\304\305!\210\306\300!\210\307\310\311#\306\301!\210\312\306\302!\210\313\306\303!\210\314\211\207" [ac-sources ac-find-function ac-candidate-function ac-auto-start auto-complete-mode 1 make-local-variable append (ac-source-rope) (ac-source-yasnippet) ac-python-find ac-python-candidate nil] 4])
(defalias 'ryan-python-tab #[nil "\300 \301=\205 \302 \207" [ac-start 0 indent-for-tab-command] 2 nil nil])
(byte-code "\301\302\303\304\305$\210\306\302\305\"\210\301\307\310\311\305$\210\306\307\305\"\210\312\313\314#\210\315\316\317\"\203/ \320\321\322\"\210\323\324\325\"\210\326\327\330\"\210\331\332!\207" [py-mode-map ad-add-advice ac-start (advice-turn-on-auto-start nil t (advice lambda nil (set (make-local-variable 'ac-auto-start) t))) before nil ad-activate ac-cleanup (advice-turn-off-auto-start nil t (advice lambda nil (set (make-local-variable 'ac-auto-start) nil))) after define-key " " ryan-python-tab load "flymake" t defalias flymake-pyflakes-init #[nil "\303\304!\305\306 !\"\307\n*CD\207" [temp-file buffer-file-name local-file flymake-init-create-temp-buffer-copy flymake-create-temp-inplace file-relative-name file-name-directory "pyflakes"] 4] add-to-list flymake-allowed-file-name-masks ("\\.py\\'" flymake-pyflakes-init) add-hook find-file-hook flymake-find-file-hook provide init_python] 5)