Skip to content

[Feature Request] Add mark-lines' like feature. #90

Description

@zw963

https://www.emacswiki.org/emacs/mark-lines.el

I don't know how you use what command to complete the same edit operation, please point out if you think this is not so necessary.

Following is my usage, i write a function, named mark-next-line, which use mark-lines-next-line which defined in mark-lines.el

(defun mark-next-line ()
  "Mark next line continuously."
  (interactive)
  (if (use-region-p)
      (next-line nil)
    (if (eql (point-max) (line-end-position))
        (mark-lines-next-line nil)
      (mark-lines-previous-line nil)
      )))

(global-set-key [(meta k)] 'mark-next-line)

Now i can pressing Alt+K several times, to mark several lines like following screenshot.

image

Then i can do operation, like save-to-ring, delete etc..

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions