(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
This commit is contained in:
2022-09-17 00:09:30 +01:00
parent 322fdeeb44
commit 5bd2f3dbd5

View File

@@ -2139,7 +2139,9 @@ and when I don't.
:general :general
(leader (leader
"tf" #'flycheck-mode "tf" #'flycheck-mode
"cx" #'flycheck-list-errors) "cx" #'flycheck-list-errors
"cJ" #'flycheck-next-error
"cK" #'flycheck-previous-error)
:display :display
("\\*Flycheck.*" ("\\*Flycheck.*"
(display-buffer-at-bottom) (display-buffer-at-bottom)
@@ -2371,14 +2373,19 @@ Some bindings for org mode.
(nmmap (nmmap
:keymaps 'org-mode-map :keymaps 'org-mode-map
[remap imenu] #'+org/swiper-goto) [remap imenu] #'+org/swiper-goto)
(local-leader
:keymaps 'org-mode-map
:infix "l"
"i" #'org-insert-link
"l" #'org-open-at-point)
(local-leader (local-leader
:keymaps 'org-mode-map :keymaps 'org-mode-map
"t" #'org-todo "t" #'org-todo
"i" #'org-insert-structure-template "p" #'org-latex-preview
"l" #'org-latex-preview
"s" #'org-property-action "s" #'org-property-action
"e" #'org-export-dispatch "e" #'org-export-dispatch
"o" #'org-edit-special)) "o" #'org-edit-special)
)
#+end_src #+end_src
*** Org message *** Org message
Org message allows for the use of org mode when composing mails, 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)
(c++-mode-hook . auto-fill-mode) (c++-mode-hook . auto-fill-mode)
:general :general
(:states '(normal motion visual) (:keymaps '(c-mode-map c++-mode-map)
:states '(normal motion visual)
"(" #'c-beginning-of-statement "(" #'c-beginning-of-statement
")" #'c-end-of-statement) ")" #'c-end-of-statement)
:pretty :pretty