From 6956525f794fac5f0d04dd90a22c7d52bff0c4f1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 18 Feb 2019 00:52:29 -0500 Subject: [PATCH] I silenced the byte compiler, what happened next will blow your mind Top 10 incredible ways to silence the byte compiler The byte compiler just wouldn't shut up. You wouldn't believe what happened next. 40 hot singles in your area are waiting for the byte compiler to shut up. 20 INSANE life hacks to put an end to the byte compiler's tyranny. (DEFINITELY NOT CLICKBAIT) --- modules/editor/multiple-cursors/config.el | 4 +--- modules/tools/magit/config.el | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/editor/multiple-cursors/config.el b/modules/editor/multiple-cursors/config.el index 425916126..8f70046f3 100644 --- a/modules/editor/multiple-cursors/config.el +++ b/modules/editor/multiple-cursors/config.el @@ -56,9 +56,7 @@ :evil-mc t)) -(def-package! multiple-cursors - :defer t - :config +(after! multiple-cursors (setq mc/list-file (concat doom-etc-dir "mc-lists.el")) ;; TODO multiple-cursors config for Emacs users? diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index 0060dd2fb..5550cf5d2 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -76,8 +76,8 @@ "%" #'magit-gitflow-popup) (after! git-rebase (dolist (key '(("M-k" . "gk") ("M-j" . "gj"))) - (setcar (assoc (car key) evil-magit-rebase-commands-w-descriptions) - (cdr key))) + (when-let* ((desc (assoc (car key) evil-magit-rebase-commands-w-descriptions))) + (setcar desc (cdr key)))) (evil-define-key* evil-magit-state git-rebase-mode-map "gj" #'git-rebase-move-line-down "gk" #'git-rebase-move-line-up)))