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>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190201140623
|
;; Version: 20190204164453
|
||||||
;; Package-Requires: (company-jedi fill-column-indicator flycheck rainbow-delimiters reformatter)
|
;; 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
|
;; 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
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -35,6 +35,8 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'company)
|
(require 'company)
|
||||||
|
(require 'hydra)
|
||||||
|
(require 'python)
|
||||||
(require 'reformatter)
|
(require 'reformatter)
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
|
|
||||||
|
@ -62,6 +64,11 @@ for indentation."
|
||||||
:lighter ""
|
:lighter ""
|
||||||
:group 'python-black)
|
: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-indent-local-mode)
|
||||||
(add-hook 'python-mode-hook 'electric-pair-local-mode)
|
(add-hook 'python-mode-hook 'electric-pair-local-mode)
|
||||||
(add-hook 'python-mode-hook 'flycheck-mode)
|
(add-hook 'python-mode-hook 'flycheck-mode)
|
||||||
|
|
Loading…
Reference in a new issue