summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/config.org18
1 files changed, 18 insertions, 0 deletions
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