Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun comment-or-uncomment-line-at-point ()
- (interactive)
- (push-mark-command (point) t)
- (comment-or-uncomment-region (line-beginning-position) (line-end-position))
- (pop-to-mark-command))
- (global-set-key (kbd "M-[") 'comment-or-uncomment-line-at-point)
Add Comment
Please, Sign In to add comment