Initial commit
This commit is contained in:
commit
99e3df82b7
28 changed files with 2639 additions and 0 deletions
33
stuff/my-python-mode.el
Executable file
33
stuff/my-python-mode.el
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
(custom-set-variables
|
||||
'(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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue