From 0cd3b44ce34affa03b0294d6c546d276abbc5579 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 22 Dec 2019 21:36:15 +0000 Subject: [PATCH] Support evil-magit, refine It took me awhile to install evil-magit because I believed that evil-collection supported it. My grasp of Emacs bindings was enough to tolerate the strangely "inconsistent" KBD support of in magit. Eventually though my tolerance waned, and I verified that evil-collection does *not* support magit, and suggests that users seek evil-magit. I did that. I do not regret it. Installing Wilfred's refine.el, which is a lovely package for interactively editing data structures. Go LISP! --- configs/shared/.emacs.d/wpc/packages/wpc-keybindings.el | 6 ++++++ configs/shared/.emacs.d/wpc/packages/wpc-misc.el | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-keybindings.el b/configs/shared/.emacs.d/wpc/packages/wpc-keybindings.el index fb9c78f0e..ed508dc7b 100644 --- a/configs/shared/.emacs.d/wpc/packages/wpc-keybindings.el +++ b/configs/shared/.emacs.d/wpc/packages/wpc-keybindings.el @@ -75,12 +75,17 @@ (setq evil-symbol-word-search t) (evil-mode 1)) +;; TODO: Write `evil-collection' KBDs for `refine'. ;; evil keybindings (use-package evil-collection :after (evil) :config (evil-collection-init)) +;; `evil-collection' does not support `magit', and the preferred way to get evil +;; kbds for magit is with `evil-magit'. +(use-package evil-magit) + ;; expose a leader key (use-package evil-leader :after (evil) @@ -108,6 +113,7 @@ "b" #'ivy-switch-buffer "W" #'balance-windows "gs" #'magit-status + "E" #'refine "es" #'wpc/create-snippet ;; TODO: Replace with `macros/ilambda' when that is working again. diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-misc.el b/configs/shared/.emacs.d/wpc/packages/wpc-misc.el index 3ddfe0b3e..a6b1aab50 100644 --- a/configs/shared/.emacs.d/wpc/packages/wpc-misc.el +++ b/configs/shared/.emacs.d/wpc/packages/wpc-misc.el @@ -56,7 +56,10 @@ ;; Emacs. (setq markdown-command "pandoc") (setq markdown-split-window-direction 'right) - (add-hook 'markdown-mode-hook #'markdown-live-preview-mode)) + ;; (add-hook 'markdown-mode-hook #'markdown-live-preview-mode) + ) + +(use-package refine) ;; Required by some google-emacs package commands. (use-package deferred)