summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-04-12 00:43:25 -0400
committerKyle Meyer <kyle@kyleam.com>2015-04-12 00:43:25 -0400
commit3dfea25664db332da8439daa7530202511bc99ff (patch)
treeb41e75d95f6f3fb04b358ba7ab1878a43a23197a /lisp
parentb610d2f78ea980ab18a83c7dde800dcaabd7fd3b (diff)
downloademacs.d-3dfea25664db332da8439daa7530202511bc99ff.tar.gz
Stop semantic from taking over imenu in Python
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-python.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el
index 5842ed6..3a4551c 100644
--- a/lisp/init-python.el
+++ b/lisp/init-python.el
@@ -19,6 +19,8 @@
(defun km/python-hook ()
(set (make-local-variable 'yas-fallback-behavior)
'(apply auto-complete))
+ ;; Stop semantic from taking over imenu.
+ (setq imenu-create-index-function #'python-imenu-create-index)
(set (make-local-variable 'compile-command) "py.test"))
(add-hook 'python-mode-hook 'km/python-hook)