aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shoshimacs.el5
-rw-r--r--shoshimacs.org5
2 files changed, 6 insertions, 4 deletions
diff --git a/shoshimacs.el b/shoshimacs.el
index b2981d5..78fff01 100644
--- a/shoshimacs.el
+++ b/shoshimacs.el
@@ -189,8 +189,9 @@
(package-install 'devdocs)
-(define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
-(define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)
+(with-eval-after-load 'flymake
+ (define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
+ (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error))
;;; Projects
(package-install 'magit)
diff --git a/shoshimacs.org b/shoshimacs.org
index d47428b..25461f9 100644
--- a/shoshimacs.org
+++ b/shoshimacs.org
@@ -693,8 +693,9 @@ elpa. however, at the moment i must install from source:
** [[info:flymake#Top][Flymake]]
#+begin_src emacs-lisp
- (define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
- (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)
+ (with-eval-after-load 'flymake
+ (define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
+ (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error))
#+end_src
* Projects