Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zw963 opened this issue Feb 4, 2022 · 0 comments
Open

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

zw963 opened this issue Feb 4, 2022 · 0 comments

Comments

@zw963
Copy link

zw963 commented Feb 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant