Skip to content

Instantly share code, notes, and snippets.

@jewel12
Created September 9, 2012 10:19
Show Gist options
  • Save jewel12/3683654 to your computer and use it in GitHub Desktop.
Save jewel12/3683654 to your computer and use it in GitHub Desktop.
move-to-mark
(defun move-to-mark ()
(interactive)
(let ((pos (point)))
(if (mark)
(progn (goto-char
(if (boundp 'marked-pos) marked-pos (mark)))
(setq marked-pos pos))
(message "There is no marked point to move."))))
(global-set-key (kbd "M-q") 'move-to-mark)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment