Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun four-spaces-to-tab (&optional begin end)
- "Replace four spaces with a tab in a region."
- (interactive "r")
- (save-excursion
- (if mark-active
- (replace-regexp " " "\t" nil (point) (mark))
- (replace-regexp " " "\t" nil (point-min) (point-max))
- )
- )
- )
Add Comment
Please, Sign In to add comment