Guest User

Untitled

a guest
Apr 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. (defun four-spaces-to-tab (&optional begin end)
  2. "Replace four spaces with a tab in a region."
  3. (interactive "r")
  4. (save-excursion
  5. (if mark-active
  6. (replace-regexp " " "\t" nil (point) (mark))
  7. (replace-regexp " " "\t" nil (point-min) (point-max))
  8. )
  9. )
  10. )
Add Comment
Please, Sign In to add comment