Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M-x set-variable comment-start " # "
- (defun my-comment-indent ()
- (interactive)
- (end-of-line)
- (let ((comment-column (+ 2 (current-column))))
- (comment-indent)))
- (add-hook 'python-mode-hook
- (lambda () (set (make-local-variable 'comment-inline-offset) 2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement