[Emacs] Add evil keybindings for tetris

This commit is contained in:
Lucien Cartier-Tilet 2020-11-19 11:29:13 +01:00
parent c715ae59d9
commit 6ddf6df989
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 12 additions and 0 deletions

View File

@ -2737,6 +2737,18 @@ I also have a shortcut for ~helm-locate~ in case I need to find a file that is n
And thats it! This should list all my org files under these directories and give me fuzzy finding for these files. I just need to partially type the name of the file I want to open and it should open without any issue. And thats it! This should list all my org files under these directories and give me fuzzy finding for these files. I just need to partially type the name of the file I want to open and it should open without any issue.
*** Games
:PROPERTIES:
:CUSTOM_ID: User-Configuration-Keybindings-Games-c9e6ac80
:END:
Apparently, no evil keybindings are set for Tetris. Lets declare them (adapted to the bépo layout):
#+BEGIN_SRC emacs-lisp
(evil-define-key 'emacs tetris-mode-map "c" 'tetris-move-left)
(evil-define-key 'emacs tetris-mode-map "t" 'tetris-move-down)
(evil-define-key 'emacs tetris-mode-map "s" 'tetris-rotate-prev)
(evil-define-key 'emacs tetris-mode-map "r" 'tetris-move-right)
#+END_SRC
*** Multiple cursors *** Multiple cursors
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: User_Configuration-Shortcuts-Multiple_cursors-83db7c9c :CUSTOM_ID: User_Configuration-Shortcuts-Multiple_cursors-83db7c9c