Skip to content

Commit

Permalink
fix(bitbake): define keybindings consistently
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelhak Bougouffa <abougouffa@fedoraproject.org>
  • Loading branch information
abougouffa committed Dec 14, 2023
1 parent 49601c9 commit f424e76
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions modules/me-embedded.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,29 @@
:hook (arduino-mode . display-line-numbers-mode)
:hook (arduino-mode . hs-minor-mode))

(use-package bitbake-modes
:straight (:host bitbucket :repo "olanilsson/bitbake-modes")
(use-package bitbake
:straight (bitbake-modes :host bitbucket :repo "olanilsson/bitbake-modes")
:config
(+map-local! :keymaps 'bitbake-mode-map
"i" '(nil "insert/edit")
"ii" #'bitbake-inc-pr
"b" #'bitbake-recipe-build-dir-dired))
"b" #'bitbake-recipe-build-dir-dired)
(+map-local! :keymaps 'bitbake-mode-map
:infix "i"
"i" #'bitbake-inc-pr))

(use-package bitbake-electric
:straight (bitbake-modes :host bitbucket :repo "olanilsson/bitbake-modes")
:hook (bitbake-mode . bitbake-electric-mode))

(use-package bitbake-insert
:straight (bitbake-modes :host bitbucket :repo "olanilsson/bitbake-modes")
:after bitbake
:demand t
:config
(+map-local! :keymaps 'bitbake-mode-map
"i" '(nil "insert/edit")
"iv" #'bitbake-insert-var
"ia" #'bitbake-append-var
"io" #'bitbake-insert-override))
:infix "i"
"v" #'bitbake-insert-var
"a" #'bitbake-append-var
"o" #'bitbake-insert-override))

(use-package mips-mode
:straight t)
Expand Down

0 comments on commit f424e76

Please sign in to comment.