python: What is this?
This commit is contained in:
parent
b40e15664c
commit
c9a7cff17a
1 changed files with 0 additions and 29 deletions
|
|
@ -1,33 +1,4 @@
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
'(python-indent 4))
|
'(python-indent 4))
|
||||||
|
|
||||||
(defun python-mode-setup ()
|
|
||||||
|
|
||||||
;; ------------- ;;
|
|
||||||
;; CONFIGURATION ;;
|
|
||||||
;; ------------- ;;
|
|
||||||
|
|
||||||
;; Comment boxing style
|
|
||||||
(set 'my-rebox-style 423)
|
|
||||||
|
|
||||||
;; -------- ;;
|
|
||||||
;; BINDINGS ;;
|
|
||||||
;; -------- ;;
|
|
||||||
|
|
||||||
;; comment
|
|
||||||
(define-key
|
|
||||||
py-mode-map
|
|
||||||
[(control c) (control c)]
|
|
||||||
'comment-region)
|
|
||||||
|
|
||||||
;; rebox
|
|
||||||
(define-key
|
|
||||||
py-mode-map
|
|
||||||
[(meta q)]
|
|
||||||
'my-rebox-comment)
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
(add-hook 'python-mode-hook 'python-mode-setup)
|
|
||||||
|
|
||||||
(provide 'my-python-mode)
|
(provide 'my-python-mode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue