1
0
Fork 0

[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.
This commit is contained in:
Tom Willemse 2021-07-06 13:50:45 -07:00
parent f377541a46
commit caba40a5f5

View file

@ -113,7 +113,7 @@ installs it will always be ~."
This condition requires that the key used for the snippet is This condition requires that the key used for the snippet is
located at the start of the line." located at the start of the line."
(setq-local yas-buffer-local-condition (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 () (defun oni-org-setup-prettify-symbols-mode ()
"Set up prettify symbols mode for org mode." "Set up prettify symbols mode for org mode."