From 5bd2f3dbd591a4f2c50f629502ae985f0fa38803 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 17 Sep 2022 00:09:30 +0100 Subject: (Emacs)~bindings for org-mode, cc-mode, flycheck + bindings for flycheck-(next|prev)-error ~ bindings for org mode (now has prefix "l" for links) ~ c(++?)-mode's binding for c-(beg|end)-of-statement now set just for c(++?)-mode --- Emacs/.config/emacs/config.org | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index b549582..194889a 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2139,7 +2139,9 @@ and when I don't. :general (leader "tf" #'flycheck-mode - "cx" #'flycheck-list-errors) + "cx" #'flycheck-list-errors + "cJ" #'flycheck-next-error + "cK" #'flycheck-previous-error) :display ("\\*Flycheck.*" (display-buffer-at-bottom) @@ -2371,14 +2373,19 @@ Some bindings for org mode. (nmmap :keymaps 'org-mode-map [remap imenu] #'+org/swiper-goto) + (local-leader + :keymaps 'org-mode-map + :infix "l" + "i" #'org-insert-link + "l" #'org-open-at-point) (local-leader :keymaps 'org-mode-map "t" #'org-todo - "i" #'org-insert-structure-template - "l" #'org-latex-preview + "p" #'org-latex-preview "s" #'org-property-action "e" #'org-export-dispatch - "o" #'org-edit-special)) + "o" #'org-edit-special) + ) #+end_src *** Org message Org message allows for the use of org mode when composing mails, @@ -2536,7 +2543,8 @@ when I want greater control over memory management. (c-mode-hook . auto-fill-mode) (c++-mode-hook . auto-fill-mode) :general - (:states '(normal motion visual) + (:keymaps '(c-mode-map c++-mode-map) + :states '(normal motion visual) "(" #'c-beginning-of-statement ")" #'c-end-of-statement) :pretty -- cgit v1.2.3-13-gbd6f