Add traad to Python configuration
traad is a Python refactoring library.
This commit is contained in:
parent
45e234a65a
commit
cf5fcd454b
1 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue