diff options
author | Tom Willemse | 2021-07-06 13:50:45 -0700 |
---|---|---|
committer | Tom Willemse | 2021-07-06 21:00:42 -0700 |
commit | caba40a5f5eb57697b87b27e6e63bdaf93215bb9 (patch) | |
tree | edb0db5ffb89d531fcb1ea2267b5bdf0d6ecc7f1 /oni-org/oni-org.el | |
parent | f377541a467ad25379f884eb740abdb89b6aca07 (diff) | |
download | emacs-config-caba40a5f5eb57697b87b27e6e63bdaf93215bb9.tar.gz emacs-config-caba40a5f5eb57697b87b27e6e63bdaf93215bb9.zip |
[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.
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r-- | oni-org/oni-org.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." |