From 3dfea25664db332da8439daa7530202511bc99ff Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 12 Apr 2015 00:43:25 -0400 Subject: Stop semantic from taking over imenu in Python --- lisp/init-python.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/init-python.el') 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) -- cgit v1.2.3