Skip to content

Commit 3274e7d

Browse files
cpauliksyl20bnr
authored andcommittedApr 22, 2016
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.
1 parent 84f7f5a commit 3274e7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎layers/+lang/python/packages.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@
348348
(add-hook 'python-mode-hook 'py-yapf-enable-on-save))))
349349

350350
(defun python/post-init-semantic ()
351-
(add-hook 'python-mode-hook
352-
'spacemacs//disable-semantic-idle-summary-mode t)
351+
(when (configuration-layer/package-usedp 'anaconda-mode)
352+
(add-hook 'python-mode-hook
353+
'spacemacs//disable-semantic-idle-summary-mode t))
353354
(add-hook 'python-mode-hook 'semantic-mode)
354355
(add-hook 'python-mode-hook 'spacemacs//python-imenu-create-index-use-semantic)
355356

0 commit comments

Comments
 (0)
Please sign in to comment.