From 3274e7d518163f4e83dcb88b821485c7309d9bde Mon Sep 17 00:00:00 2001 From: Christoph Paulik Date: Mon, 18 Apr 2016 20:45:40 +0200 Subject: [PATCH] Only disable semantic-idle-summary in python if anaconda-mode is used. Some people have problems with anaconda mode and exclude it. This enables them to at least have the semantic summary in their modeline. --- layers/+lang/python/packages.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layers/+lang/python/packages.el b/layers/+lang/python/packages.el index 50c57142de61..3f6f448bb88f 100644 --- a/layers/+lang/python/packages.el +++ b/layers/+lang/python/packages.el @@ -348,8 +348,9 @@ (add-hook 'python-mode-hook 'py-yapf-enable-on-save)))) (defun python/post-init-semantic () - (add-hook 'python-mode-hook - 'spacemacs//disable-semantic-idle-summary-mode t) + (when (configuration-layer/package-usedp 'anaconda-mode) + (add-hook 'python-mode-hook + 'spacemacs//disable-semantic-idle-summary-mode t)) (add-hook 'python-mode-hook 'semantic-mode) (add-hook 'python-mode-hook 'spacemacs//python-imenu-create-index-use-semantic)