Skip to content

[Feature] Integrate with evil-mode. #51

@sakurawald

Description

@sakurawald

Hello, this package is awesome, it highlights the bookmark lines for a buffer, that's very useful for text analysis and presentation.

It will be better if it can integrate with the mark system in evil-mode.

In evil-mode, you can press m key plus a second key {a-z} to create at-most 26 marks for a buffer.

And there is a local-variable named evil-markers-alist.

The value may be

((99 . #<marker at 444 in init.el>) (98 . #<marker at 354 in init.el>) (97 . #<marker at 164 in init.el>) (109 . #<marker at 104 in init.el>) (94 . #<marker (moves after insertion) at 67307 in init.el>) (93 . #<marker at 67285 in init.el>) (91 . #<marker at 67285 in init.el>) (40 . evil-backward-sentence-begin) (41 . evil-forward-sentence-begin) (123 . evil-backward-paragraph) (125 . evil-forward-paragraph) (39 . evil-jump-backward-swap) (96 . evil-jump-backward-swap) (60 . evil-visual-beginning) (62 . evil-visual-goto-end) (46 lambda nil (let (last-command) (goto-last-change nil))))

That's the marker name key + location and buffer encoding.


The use-case is: I can use ma to create a mark named a, and then mb for another, and then mc. If I want to go to a buffer, just press 'a or 'b or 'c keys.
The marks in evil-mode is not visualized, but I think bm package can do this, and it will be a perfect combination.

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