From caba40a5f5eb57697b87b27e6e63bdaf93215bb9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 6 Jul 2021 13:50:45 -0700 Subject: [PATCH] =?UTF-8?q?[oni-org]=20Check=20for=20=E2=80=98line-start?= =?UTF-8?q?=E2=80=99=20instead=20of=20=E2=80=98\n=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Line-start is more accurate and will work for both the beginning of the buffer, and anywhere else in the buffer at the start of the line. --- oni-org/oni-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 0700376..362b781 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -113,7 +113,7 @@ installs it will always be ~." This condition requires that the key used for the snippet is located at the start of the line." (setq-local yas-buffer-local-condition - '(looking-back (rx "\n" (one-or-more (not space)))))) + '(looking-back (rx line-start (one-or-more (not space)))))) (defun oni-org-setup-prettify-symbols-mode () "Set up prettify symbols mode for org mode."