(use-package general :config (general-define-key :keymaps 'god-local-mode-map "h" 'backward-char "j" 'next-line "k" 'previous-line "l" 'forward-char)) (use-package ryo-modal :commands ryo-modal-mode :bind ("" . o/ryo-stick) :after hydra :config (ryo-modal-key "SPC" '(("h" move-beginning-of-line) ("j" end-of-buffer) ("k" beginning-of-buffer) ("l" move-end-of-line) ("e" (("b" eval-buffer) ("e" eval-last-sexp))) ("f" (("f" find-file) ("j" split-window-below) ("k" split-window-right) ("h" describe-function))) ("g" goto-line) ("i" back-to-indentation) ("c" (("j" (("n" paredit-join-with-next-list) ("p" paredit-join-with-previous-list))))) ("q" (("q" delete-window) ("w" kill-buffer))) ("s" (("t" switch-to-buffer) ("s" save-buffer) ("q" save-buffers-kill-emacs))) ("x" (("c" kill-emacs))))) (ryo-modal-keys ("a" "M-x") ("b" xah-goto-matching-bracket) ("c" "M-w") ("d" o/delete) ("e" er/expand-region) ("e" er/expand-region) ("F" o/insert-forward) ("f" ryo-modal-mode) ("g" (("c" "C-c") ("h" "C-h") ("x" "C-x"))) ("h" backward-char) ("H" beginning-of-defun) ("i" undo) ("J" forward-paragraph) ("j" next-line) ("K" backward-paragraph) ("k" previous-line) ("L" end-of-defun) ("l" forward-char) ("n" ryo-modal-repeat) ("o" forward-same-syntax :first '(kakoune-set-mark-here)) ("O" forward-same-syntax :first '(kakoune-set-mark-if-inactive)) ("q" o/quit) ("r" xah-forward-right-bracket) ("s" o/newline) ("S" o/newline-up) ("T" rectangle-mark-mode) ("t" set-mark-command) ("u" kakoune-backward-same-syntax :first '(kakoune-set-mark-here)) ("U" kakoune-backward-same-syntax :first '(kakoune-set-mark-if-inactive)) ("v" "C-y") ("w" xah-backward-left-bracket) ("x" kakoune-x) ("y" xah-toggle-letter-case) ("z" comment-line) ("," xah-beginning-of-line-or-block) ("." xah-end-of-line-or-block) ("(" paredit-wrap-sexp) (")" paredit-split-sexp) ("[" paredit-wrap-square) ("{" paredit-wrap-curly) ("<" paredit-wrap-angled) ("/" avy-goto-char-timer) ("'" xah-cycle-hyphen-underscore-space) ("\"" xah-shrink-whitespaces) ("-" xah-backward-punct) ("=" xah-forward-punct) ("m" ace-window)) (ryo-modal-keys (:norepeat t) ("0" "M-0") ("1" "M-1") ("2" "M-2") ("3" "M-3") ("4" "M-4") ("5" "M-5") ("6" "M-6") ("7" "M-7") ("8" "M-8") ("9" "M-9"))) (ryo-modal-mode 1) (provide 'oh-mode)