summaryrefslogtreecommitdiff
path: root/mms-keyboard.org
blob: 4093c00ff2b8edf96fc1f06eab2525bd97480c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#+TITLE: mms's Emacs Config - Keyboard configuration
#+AUTHOR: MichaƂ Sapka (https://michal.sapka.me)
#+STARTUP: showall indent logdoneGeneral settings

#+HUGO_BASE_DIR: ~/ghq/vcs.sapka.me/michal-sapka-me/
#+HUGO_WEIGHT: 10
#+HUGO_SECTION: emacs/config
#+HUGO_CATEGORIES: emacs emacs-config
#+HUGO_MENU :menu "emacs-config"
#+HUGO_CUSTOM_FRONT_MATTER: :abstract "My emacs config - keyboard config"
#+HUGO_CUSTOM_FRONT_MATTER: :menu-abstract "evil mode, basic key bindings and misc"
#+EXPORT_FILE_NAME: keyboard

* Which key

WK adds a on-the-fly cheatsheet.

#+begin_src emacs-lisp
  (use-package which-key
    :ensure t
    :config
    (which-key-mode))
#+end_src

* Xah Lee Flykeys
# 
#+begin_src emacs-lisp
  (use-package xah-fly-keys
    :config
    (xah-fly-keys-set-layout "qwerty")
    (xah-fly-keys 1)

    (define-key xah-fly-command-map (kbd "SPC i o") 'consult-bookmark)
    (define-key xah-fly-command-map (kbd "SPC i f") 'consult-find)
    (define-key xah-fly-command-map (kbd "SPC i F") 'find-file)
    (define-key xah-fly-command-map (kbd "SPC i g") 'consult-ripgrep)
(load-file "~/.emacs.d/ext/xah-fk-org.el")

  )

#+end_src
 
* Avy

Avy is a quick jump-to-place package.
I use it in a very basic way.

#+begin_src emacs-lisp
  (use-package avy
    :after xah-fly-keys
    :config
    (define-key xah-fly-command-map (kbd "-") 'avy-goto-char-timer)
    )
#+end_src