Skip to content

Commit

Permalink
Only disable semantic-idle-summary in python if anaconda-mode is used.
Browse files Browse the repository at this point in the history
Some people have problems with anaconda mode and exclude it. This
enables them to at least have the semantic summary in their modeline.
  • Loading branch information
cpaulik authored and syl20bnr committed Apr 22, 2016
1 parent 84f7f5a commit 3274e7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions layers/+lang/python/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3274e7d

Please sign in to comment.