This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(evil-leader/set-key | |
"gt" nil | |
"gt" 'spacemacs/time-machine-micro-state) | |
(spacemacs|define-micro-state time-machine | |
:doc "[q] quit [p] previous [n] next [c] current" | |
:on-enter (git-timemachine) | |
:on-exit (git-timemachine-quit) | |
:persistent t | |
:bindings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(spacemacs|define-micro-state scroll | |
:doc "[,] page down [.] page up " | |
:bindings | |
("," evil-scroll-page-down) | |
("." evil-scroll-page-up)) | |
(evil-leader/set-key | |
"," '(lambda (x) | |
(interactive "p") | |
(evil-scroll-page-down x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; New syntax | |
(spacemacs|define-micro-state scroll | |
:doc "[,] page down [.] page up " | |
:bindings | |
("," evil-scroll-page-down) | |
("." evil-scroll-page-up)) | |
(evil-leader/set-key | |
"," '(lambda (x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Old syntax | |
(evil-leader/set-key | |
"," 'hfj/scroll-page-down | |
"." 'hfj/scroll-page-up | |
) | |
(defun hfj/scroll-page-overlay-map () | |
"Set a temporary overlay map to easily scroll through a file." | |
(set-temporary-overlay-map |
NewerOlder