forked from gabrielelanaro/emacs-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathepy-bindings.el
More file actions
24 lines (18 loc) · 711 Bytes
/
epy-bindings.el
File metadata and controls
24 lines (18 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;; Copy-Cut-Paste from clipboard with Super-C Super-X Super-V
(global-set-key (kbd "s-x") 'clipboard-kill-region) ;;cut
(global-set-key (kbd "s-c") 'clipboard-kill-ring-save) ;;copy
(global-set-key (kbd "s-v") 'clipboard-yank) ;;paste
;; calc-mode more comfortable
(global-set-key (kbd "M-c") 'calc-dispatch)
; Ctrl+tab mapped to Alt+tab
(define-key function-key-map [(control tab)] [?\M-\t])
(global-set-key [f10] 'flymake-goto-prev-error)
(global-set-key [f11] 'flymake-goto-next-error)
;; Rope bindings
(add-hook 'python-mode-hook
(lambda ()
(define-key python-mode-map "\C-ci" 'rope-auto-import)
(define-key python-mode-map "\C-c\C-d" 'rope-show-calltip)
)
)
(provide 'epy-bindings)