[emacs] make outline bindings not overlap, bindings for flycheck
authorAmin Bandali <bandali@gnu.org>
Mon, 5 Nov 2018 21:53:36 +0000 (16:53 -0500)
committerAmin Bandali <bandali@gnu.org>
Mon, 5 Nov 2018 21:53:36 +0000 (16:53 -0500)
init.org

index 5df8479..5d760c8 100644 (file)
--- a/init.org
+++ b/init.org
@@ -972,8 +972,8 @@ There's no way I could top that, so I won't attempt to.
   (:map
    outline-minor-mode-map
    ("<s-tab>"  . outline-toggle-children)
-   ("s-p"      . outline-previous-visible-heading)
-   ("s-n"      . outline-next-visible-heading)
+   ("M-p"      . outline-previous-visible-heading)
+   ("M-n"      . outline-next-visible-heading)
    :prefix-map amin--outline-prefix-map
    :prefix "s-o"
    ("TAB" . outline-toggle-children)
@@ -1096,6 +1096,10 @@ TODO: break this giant source block down into individual org sections.
 #+begin_src emacs-lisp
 (use-package flycheck
   :hook (prog-mode . flycheck-mode)
+  :bind
+  (:map flycheck-mode-map
+        ("M-P" . flycheck-previous-error)
+        ("M-N" . flycheck-next-error))
   :config
   ;; Use the load-path from running Emacs when checking elisp files
   (setq flycheck-emacs-lisp-load-path 'inherit)