Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun semicolon ()
- "Add semicolon at the end of the line and return to current position"
- (interactive)
- (setq current (point))
- (end-of-line)
- (if (not (= (preceding-char) 59))
- (insert ";")
- )
- (goto-char current)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement