Simple image host.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mc-mark-pop.el 593B

12345678910111213141516171819202122
  1. ;;; mc-mark-pop.el --- Pop cursors off of the mark stack
  2. (require 'multiple-cursors-core)
  3. ;;;###autoload
  4. (defun mc/mark-pop ()
  5. "Add a cursor at the current point, pop off mark ring and jump
  6. to the popped mark."
  7. (interactive)
  8. ;; If the mark happens to be at the current point, just pop that one off.
  9. (while (eql (mark) (point))
  10. (pop-mark))
  11. (mc/create-fake-cursor-at-point)
  12. (exchange-point-and-mark)
  13. (pop-mark)
  14. (mc/maybe-multiple-cursors-mode))
  15. ;; A good key binding for this feature is perhaps "C-S-p" ('p' for pop).
  16. (provide 'mc-mark-pop)
  17. ;;; mc-mark-pop.el ends here