From f64328804b0d8c105c1023e5df49b8f1fa4165f1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 25 Aug 2023 11:35:07 +0300 Subject: emacs: Add tetris bindings --- .config/emacs/config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/config.org b/.config/emacs/config.org index f4f8d9d..1614459 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -448,6 +448,24 @@ Commenting code is a super common task — so make it an operator! #+END_SRC +*** Tetris + +Tetris is epic, but the bindings are not so epic. + +#+BEGIN_SRC elisp + + (use-package tetris + :hook (tetris-mode . (lambda () (evil-local-mode -1))) + :bind (:map tetris-mode-map + ("a" . #'tetris-move-left) + ("d" . #'tetris-move-right) + ("k" . #'tetris-rotate-next) + (";" . #'tetris-rotate-prev) + ("s" . #'tetris-move-down) + ("SPC" . #'tetris-move-bottom))) + +#+END_SRC + ** Completions *** Savehist-Mode -- cgit v1.2.3