Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. (defun semicolon ()
  2. "Add semicolon at the end of the line and return to current position"
  3. (interactive)
  4. (setq current (point))
  5. (end-of-line)
  6. (if (not (= (preceding-char) 59))
  7. (insert ";")
  8. )
  9. (goto-char current)
  10. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement