lang/python: move :lookup setting to anaconda-mode block

This commit is contained in:
Henrik Lissner 2018-01-24 03:16:36 -05:00
parent 12ac162276
commit ac825754c6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -80,7 +80,10 @@ environment variables."
:config :config
(add-hook 'anaconda-mode-hook #'anaconda-eldoc-mode) (add-hook 'anaconda-mode-hook #'anaconda-eldoc-mode)
(set! :popup "^\\*anaconda-mode" nil '((select))) (set! :popup "^\\*anaconda-mode" nil '((select)))
(map! :map anaconda-mode-map :m "gd" #'anaconda-mode-find-definitions) (set! :lookup 'python-mode
:definition #'anaconda-mode-find-definitions
:references #'anaconda-mode-find-references
:documentation #'anaconda-mode-show-doc)
(advice-add #'anaconda-mode-doc-buffer :after #'doom*anaconda-mode-doc-buffer)) (advice-add #'anaconda-mode-doc-buffer :after #'doom*anaconda-mode-doc-buffer))
@ -88,10 +91,6 @@ environment variables."
:when (featurep! :completion company) :when (featurep! :completion company)
:after anaconda-mode :after anaconda-mode
:config :config
(set! :lookup 'python-mode
:definition #'anaconda-mode-find-definitions
:references #'anaconda-mode-find-references
:documentation #'anaconda-mode-show-doc)
(map! :map python-mode-map (map! :map python-mode-map
:localleader :localleader
:prefix "f" :prefix "f"