[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:
parent
f377541a46
commit
caba40a5f5
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue