From caba40a5f5eb57697b87b27e6e63bdaf93215bb9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 6 Jul 2021 13:50:45 -0700 Subject: [oni-org] Check for ‘line-start’ instead of ‘\n’ 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." -- cgit v1.2.3-54-g00ecf