From 2f54a005b30c8e71122b1fcafa09061071973242 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 26 May 2016 12:40:22 -0700 Subject: [PATCH] Assign M-. to jedi:goto-definition --- dotfiles/emacs.d/init.el | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 7fcccaf7..c04b594c 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -2083,18 +2083,6 @@ window is active in the perspective." (interactive) (message "%s" (get-virtual-envs))) -(use-package jedi - :commands (jedi:goto-definition jedi-mode) - :config - (progn - (setq jedi:complete-on-dot t) - (setq jedi:imenu-create-index-function 'jedi:create-flat-imenu-index)) - :bind (("M-." . jedi:goto-definition) - ("M-," . jedi:goto-definition-pop-marker))) - -(use-package company-jedi - :commands company-jedi) - (use-package python :commands python-mode :mode ("\\.py\\'" . python-mode) @@ -2105,6 +2093,17 @@ window is active in the perspective." :init (progn (unbind-key "C-j" python-mode-map) + (use-package jedi + :commands (jedi:goto-definition jedi-mode) + :config + (progn + (setq jedi:complete-on-dot t) + (setq jedi:imenu-create-index-function 'jedi:create-flat-imenu-index) + (use-package company-jedi + :commands company-jedi)) + :bind (:map python-mode-map + ("M-." . jedi:goto-definition) + ("M-," . jedi:goto-definition-pop-marker))) (use-package pymacs) (use-package sphinx-doc) (defun imalison:python-mode ()