{"action":"created","issue":{"url":"https://api.github.com/repos/tkf/emacs-jedi/issues/196","labels_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/196/comments","events_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/196/events","html_url":"https://github.com/tkf/emacs-jedi/issues/196","id":56399183,"number":196,"title":"Change keybindings","user":{"login":"nayefc","id":1350418,"avatar_url":"https://avatars.githubusercontent.com/u/1350418?v=3","gravatar_id":"","url":"https://api.github.com/users/nayefc","html_url":"https://github.com/nayefc","followers_url":"https://api.github.com/users/nayefc/followers","following_url":"https://api.github.com/users/nayefc/following{/other_user}","gists_url":"https://api.github.com/users/nayefc/gists{/gist_id}","starred_url":"https://api.github.com/users/nayefc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayefc/subscriptions","organizations_url":"https://api.github.com/users/nayefc/orgs","repos_url":"https://api.github.com/users/nayefc/repos","events_url":"https://api.github.com/users/nayefc/events{/privacy}","received_events_url":"https://api.github.com/users/nayefc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-03T16:16:34Z","updated_at":"2015-02-04T14:55:50Z","closed_at":null,"body":"I installed Jedi mode in Emacs. I noticed that it overrides `C-c .` and `C-c ,` (`goto-definition` and `goto-definition-pop-marker respectively`).\r\n\r\nHere is how I set it up in my init file:\r\n\r\n```lisp\r\n    (setq jedi:setup-keys t)\r\n    (add-hook 'python-mode-hook 'jedi:setup)\r\n```\r\n\r\nI am using another mode called multiple-cursors that is set up as follows:\r\n\r\n```lisp\r\n    (add-to-list 'load-path \"~/.emacs.d/multiple-cursors.el/\")\r\n    (global-set-key (kbd \"C-c .\") 'mc/mark-next-like-this)\r\n    (global-set-key (kbd \"C-c ,\") 'mc/mark-previous-like-this)\r\n```\r\nOnce jedi-setup loads, it rebinds my `C-c .` and `C-c ,`. What I'd like to do is keep my multiple cursors bindings and remap Jedi's bindings. I tried adding this to the end of my Jedi setup but it ends up mapping the Jedi functions to both C-c./, and C-c j/k at the same time.\r\n```lisp\r\n    (setq jedi:key-goto-definition (kbd \"C-c k\"))\r\n    (setq jedi:key-goto-definition-pop-marker (kbd \"C-c j\"))\r\n```\r\nThe reason this happens is because Jedi binds them on the regular C-c ./, mappings, then just adds another C-c j/k mapping.\r\n\r\nWhen I use `define-key`, it does not work. Here is what I did:\r\n\r\n```lisp\r\n(eval-after-load 'jedi-mode\r\n   '(progn\r\n      (define-key jedi-mode-map (kbd \"C-c d\") nil))) \r\n```\r\n\r\nThis has no effect. When I remove `progn`, I get a symbol void error.\r\nHow do I stop Jedi from completely not binding to the C-c ./, and only bind to C-c j/k?"},"comment":{"url":"https://api.github.com/repos/tkf/emacs-jedi/issues/comments/72868036","html_url":"https://github.com/tkf/emacs-jedi/issues/196#issuecomment-72868036","issue_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/196","id":72868036,"user":{"login":"nayefc","id":1350418,"avatar_url":"https://avatars.githubusercontent.com/u/1350418?v=3","gravatar_id":"","url":"https://api.github.com/users/nayefc","html_url":"https://github.com/nayefc","followers_url":"https://api.github.com/users/nayefc/followers","following_url":"https://api.github.com/users/nayefc/following{/other_user}","gists_url":"https://api.github.com/users/nayefc/gists{/gist_id}","starred_url":"https://api.github.com/users/nayefc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayefc/subscriptions","organizations_url":"https://api.github.com/users/nayefc/orgs","repos_url":"https://api.github.com/users/nayefc/repos","events_url":"https://api.github.com/users/nayefc/events{/privacy}","received_events_url":"https://api.github.com/users/nayefc/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T14:55:50Z","updated_at":"2015-02-04T14:55:50Z","body":"Yes, `\"jedi\"` fixed it for me."}}