aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-python.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/oni-python.el b/oni-python.el
index 1981573..04f03ba 100644
--- a/oni-python.el
+++ b/oni-python.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190201140623
-;; Package-Requires: (company-jedi fill-column-indicator flycheck rainbow-delimiters reformatter)
+;; Version: 20190204164453
+;; Package-Requires: (company-jedi fill-column-indicator flycheck rainbow-delimiters reformatter traad hydra)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -35,6 +35,8 @@
;;; Code:
(require 'company)
+(require 'hydra)
+(require 'python)
(require 'reformatter)
(require 'whitespace)
@@ -62,6 +64,11 @@ for indentation."
:lighter ""
:group 'python-black)
+(defhydra python-refactor-hydra (:color blue)
+ ("r" traad-rename "Rename object"))
+
+(define-key python-mode-map (kbd "C-c r") 'python-refactor-hydra/body)
+
(add-hook 'python-mode-hook 'electric-indent-local-mode)
(add-hook 'python-mode-hook 'electric-pair-local-mode)
(add-hook 'python-mode-hook 'flycheck-mode)