dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6edb8e084adac4955600b8d7b5457c9ee9f106d4
parent 18aff97f0f4a87bc60d5eb421f138c05de244aa6
Author: Tim Lerners-Bee <timbl+github@w3.org>
Date:   Fri, 26 Nov 2021 13:56:43 +0100

emacs: selection bindings in mpc are useful

Diffstat:
Memacs/config.org | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -288,10 +288,10 @@ anki-editor doesn't provide a keymap so I have to set one up here: :hook (anki-editor-mode . (lambda () - (define-key (kbd "C-c t") #'org-property-next-allowed-value) - (define-key (kbd "C-c i") #'anki-editor-insert-note) - (define-key (kbd "C-c p") #'anki-editor-push-notes) - (define-key (kbd "C-c c") #'anki-editor-cloze-dwim)))) + (define-key anki-editor-mode-map (kbd "C-c t") #'org-property-next-allowed-value) + (define-key anki-editor-mode-map (kbd "C-c i") #'anki-editor-insert-note) + (define-key anki-editor-mode-map (kbd "C-c p") #'anki-editor-push-notes) + (define-key anki-editor-mode-map (kbd "C-c c") #'anki-editor-cloze-dwim)))) #+end_src ** rainbow-mode @@ -822,6 +822,7 @@ Define some keybindings: (define-key mpc-mode-map "P" #'mpc-playlist) (define-key mpc-mode-map "x" #'mpc-playlist-delete) (define-key mpc-mode-map "p" #'mpc-toggle-play) + (define-key mpc-mode-map "t" #'mpc-select-toggle) (define-key mpc-mode-map "f" (lambda () "Seek forward 20 seconds" (interactive) (mpc-seek-current "+20"))) (define-key mpc-mode-map "b" (lambda () "Seek backward 20 seconds" (interactive) (mpc-seek-current "-20"))))) #+end_src