From d63e172bde5b2b3cb8ddb676f6db1e6df4b31fbb Mon Sep 17 00:00:00 2001 From: Lucius Hu <1222865+lebensterben@users.noreply.github.com> Date: Wed, 5 Jan 2022 22:40:22 -0500 Subject: [PATCH] Revert "[org-roam] Fix evil org-roam-node-insert spacing" (#15244) --- layers/+emacs/org/packages.el | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/layers/+emacs/org/packages.el b/layers/+emacs/org/packages.el index e5f7db78a..159fb4a4e 100644 --- a/layers/+emacs/org/packages.el +++ b/layers/+emacs/org/packages.el @@ -971,21 +971,7 @@ Headline^^ Visit entry^^ Filter^^ Da :mode org-roam-mode :bindings "o" 'link-hint-open-link - "r" 'org-roam-buffer-refresh)) - - ; Workaround an upstream issue with evil, as described in https://github.com/syl20bnr/spacemacs/issues/14137 - (defadvice org-roam-node-insert (around append-if-in-evil-normal-mode activate compile) - "If in evil normal mode and cursor is on a whitespace character, then go into - append mode first before inserting the link. This is to put the link after the - space rather than before." - (let ((is-in-evil-normal-mode (and (bound-and-true-p evil-mode) - (not (bound-and-true-p evil-insert-state-minor-mode)) - (looking-at "[[:blank:]]")))) - (if (not is-in-evil-normal-mode) - ad-do-it - (evil-append 0) - ad-do-it - (evil-normal-state)))))) + "r" 'org-roam-buffer-refresh)))) (defun org/init-org-sticky-header () (use-package org-sticky-header