fix anaconda keybindings for latest anaconda mode

This commit is contained in:
Christoph Paulik 2015-09-07 22:13:42 +02:00 committed by Eivind Fonn
parent 7560d0b8ff
commit 296e469057
2 changed files with 29 additions and 25 deletions

View file

@ -4,19 +4,19 @@
* Table of Contents :TOC@4: * Table of Contents :TOC@4:
- [[#description][Description]] - [[#description][Description]]
- [[#features][Features:]] - [[#features][Features:]]
- [[#install][Install]] - [[#install][Install]]
- [[#layer][Layer]] - [[#layer][Layer]]
- [[#test-runner][Test runner]] - [[#test-runner][Test runner]]
- [[#anaconda-dependencies][Anaconda dependencies]] - [[#anaconda-dependencies][Anaconda dependencies]]
- [[#automatic-buffer-formatting-on-save][Automatic buffer formatting on save]] - [[#automatic-buffer-formatting-on-save][Automatic buffer formatting on save]]
- [[#autoflake][autoflake]] - [[#autoflake][autoflake]]
- [[#key-bindings][Key Bindings]] - [[#key-bindings][Key Bindings]]
- [[#inferior-repl-process][Inferior REPL process]] - [[#inferior-repl-process][Inferior REPL process]]
- [[#running-python-script-in-shell][Running Python Script in shell]] - [[#running-python-script-in-shell][Running Python Script in shell]]
- [[#testing][Testing]] - [[#testing][Testing]]
- [[#refactoring][Refactoring]] - [[#refactoring][Refactoring]]
- [[#other-python-commands][Other Python commands]] - [[#other-python-commands][Other Python commands]]
* Description * Description
@ -155,14 +155,15 @@ Test commands (start with ~m t~ or ~m T~):
** Other Python commands ** Other Python commands
| Key Binding | Description | | Key Binding | Description |
|-------------+------------------------------------------------------------------| |-------------+------------------------------------------------------------------------------|
| ~SPC m =~ | Reformat the buffer according to PEP8 using [[https://github.com/google/yapf][YAPF]] | | ~SPC m =~ | Reformat the buffer according to PEP8 using [[https://github.com/google/yapf][YAPF]] |
| ~SPC m d b~ | toggle a breakpoint | | ~SPC m d b~ | toggle a breakpoint |
| ~SPC m g g~ | go to definition using =anaconda-mode-goto= (~C-o~ to jump back) | | ~SPC m g g~ | go to definition using =anaconda-mode-find-definitions= (~C-o~ to jump back) |
| ~SPC m g u~ | navigate between usages with =anaconda-mode-usages= | | ~SPC m g a~ | go to assignment using =anaconda-mode-find-assignments= (~C-o~ to jump back) |
| ~SPC m h d~ | look for documentation using =helm-pydoc= | | ~SPC m g u~ | navigate between usages with =anaconda-mode-find-references= |
| ~SPC m h h~ | quick documentation using anaconda | | ~SPC m h d~ | look for documentation using =helm-pydoc= |
| ~SPC m h H~ | open documentation in =firefox= using [pylookup][pylookup] | | ~SPC m h h~ | quick documentation using anaconda |
| ~SPC m v~ | activate a virtual environment with [[https://github.com/yyuu/pyenv][pyenv]] | | ~SPC m h H~ | open documentation in =firefox= using [pylookup][pylookup] |
| ~SPC m V~ | activate a virtual environment with [[https://github.com/jorgenschaefer/pyvenv][pyvenv]] | | ~SPC m v~ | activate a virtual environment with [[https://github.com/yyuu/pyenv][pyenv]] |
| ~SPC m V~ | activate a virtual environment with [[https://github.com/jorgenschaefer/pyvenv][pyvenv]] |

View file

@ -40,9 +40,12 @@
:config :config
(progn (progn
(evil-leader/set-key-for-mode 'python-mode (evil-leader/set-key-for-mode 'python-mode
"mhh" 'anaconda-mode-view-doc "mhh" 'anaconda-mode-show-doc
"mgg" 'anaconda-mode-goto "mgg" 'anaconda-mode-find-definitions
"mgu" 'anaconda-mode-usages) "mga" 'anaconda-mode-find-assignments
"mgu" 'anaconda-mode-find-references)
(evilify anaconda-mode-view-mode anaconda-mode-view-mode-map
(kbd "q") 'kill-buffer-and-window)
(spacemacs|hide-lighter anaconda-mode)))) (spacemacs|hide-lighter anaconda-mode))))
(defun python/init-cython-mode () (defun python/init-cython-mode ()