-
Notifications
You must be signed in to change notification settings - Fork 150
/
epy-setup.el
38 lines (28 loc) · 1.02 KB
/
epy-setup.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
34
35
36
37
38
;; epy-setup.el - setup and load all the paths necessary
(defconst epy-install-dir
(file-name-directory (or load-file-name
(when (boundp 'bytecomp-filename) bytecomp-filename)
buffer-file-name))
"Installation directory of emacs-for-python terminating with a slash"
)
;; Adding paths to the variable load-path
(dolist (relpath '(""
"extensions/"
"extensions/yasnippet"
"extensions/auto-complete"
"extensions/eproject"
)
)
(add-to-list 'load-path (concat epy-install-dir relpath)))
(when (not (boundp 'yas--version))
(setq yas--version nil))
(defvar epy-yas--version yas--version
"Version of yassnippet found when epy was loaded.
Not used now, just for debugging. ")
(defcustom epy-load-yasnippet-p nil
"If yasnippet stuff delivered here should be loaded.
Default is nil.
Disable in case of versions-conflicts etc. "
:type 'boolean
:group 'python-mode)
(provide 'epy-setup)