Skip to content

Commit

Permalink
line mode "most" navigations
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Nov 28, 2020
1 parent cc704d7 commit 40acd07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eem-line-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ From: https://emacs.stackexchange.com/questions/17846/calculating-the-length-of-
(evil-join (line-beginning-position)
(line-end-position)))))

(defun my-top-line ()
(interactive)
(evil-goto-line))

(defun my-bottom-line ()
(interactive)
(evil-goto-line 1))

(defhydra hydra-line (:columns 4
:post (chimera-hydra-portend-exit chimera-line-mode t)
:after-exit (chimera-hydra-signal-exit chimera-line-mode
Expand All @@ -223,6 +231,8 @@ From: https://emacs.stackexchange.com/questions/17846/calculating-the-length-of-
("l" evil-next-line "next")
("C-j" my-jump-down "jump down")
("C-k" my-jump-up "jump up")
("M-j" my-top-line "top line")
("M-k" my-bottom-line "bottom line")
("H" my-move-line-left "move left")
("J" my-move-line-down "move down")
("K" my-move-line-up "move up")
Expand Down

0 comments on commit 40acd07

Please sign in to comment.