Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. M-x set-variable comment-start " # "
  2.  
  3. (defun my-comment-indent ()
  4. (interactive)
  5. (end-of-line)
  6. (let ((comment-column (+ 2 (current-column))))
  7. (comment-indent)))
  8.  
  9. (add-hook 'python-mode-hook
  10. (lambda () (set (make-local-variable 'comment-inline-offset) 2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement