2022-09-24 23:15:25 +02:00
|
|
|
;;; +keybindings.el -*- lexical-binding: t; -*-
|
|
|
|
;; Custom keybindings
|
|
|
|
;;
|
|
|
|
;; Select target in Makefile compilation as default
|
|
|
|
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
|
|
|
|
;; Keybindings for R markdown polymode
|
|
|
|
(map! :map poly-markdown+R-mode-map
|
|
|
|
:n "RET" #'polymode-eval-chunk
|
|
|
|
:desc "Evaluate code block")
|
2022-09-24 23:15:44 +02:00
|
|
|
;; Map elfeed to global keybinding
|
2022-11-24 13:22:24 +01:00
|
|
|
(map! :leader :n "o e" #'=rss
|
|
|
|
:desc "RSS reader")
|
2022-09-24 23:15:44 +02:00
|
|
|
;; Map wallabag to global keybinding
|
2022-11-24 13:22:24 +01:00
|
|
|
(map! :leader :n "o w" #'=wallabag
|
|
|
|
:desc "Read saved articles")
|
2022-10-01 00:53:55 +02:00
|
|
|
;; Keybindings for org-noter
|
|
|
|
(map! :mode pdf-view-mode
|
|
|
|
:n "i" #'org-noter-insert-note
|
|
|
|
:desc "Insert note with a subheading")
|
2022-10-10 11:55:10 +02:00
|
|
|
(map! :mode pdf-view-mode
|
|
|
|
:n "x" #'org-noter-kill-session
|
|
|
|
:desc "Kill the current org-noter session")
|
2022-10-12 15:29:01 +02:00
|
|
|
;; Keybindings for pdf-view
|
|
|
|
(map! :mode pdf-view-mode
|
|
|
|
:n ":" #'pdf-view-goto-page
|
|
|
|
:desc "Move to the selected page")
|
2022-10-21 13:49:51 +02:00
|
|
|
;; Keybindings for mu4e
|
|
|
|
(map! :mode mu4e-view-mode
|
|
|
|
:n "S" #'mu4e-view-save-attachments
|
|
|
|
:desc "Save the chosen mail attachments")
|
2022-10-26 15:15:53 +02:00
|
|
|
;; Keybindings for next/previous buffer
|
2022-11-24 13:22:33 +01:00
|
|
|
(map! :n "C-c j" #'previous-buffer)
|
|
|
|
(map! :n "C-c k" #'next-buffer)
|
2022-10-27 14:11:13 +02:00
|
|
|
;; Keybindings for citar
|
|
|
|
(map! :leader :n "n B" #'citar-open-files
|
|
|
|
:desc "Open associated PDF with bibliography entry")
|
2023-03-15 01:31:12 +01:00
|
|
|
;; Keybindings for PlatformIO
|
|
|
|
(map! :map (platformio-mode)
|
|
|
|
(:leader
|
|
|
|
:desc "Compile the project" "c c" #'platformio-build
|
|
|
|
:desc "Upload the project" "c u" #'platformio-upload
|
|
|
|
:desc "Monitor the serial console" "c m" #'platformio-device-monitor))
|