tecosaur / emacs-config

My configuration for Doom Emacs. Mirror of https://git.tecosaur.net/tec/emacs-config.
MIT License
1.04k stars 119 forks source link

Address FIXME for org-return #24

Closed jackmac92 closed 3 years ago

jackmac92 commented 3 years ago

I fixed this for myself, and have "borrowed" enough config from you that I thought I should return some

guessing this used to use org-looking-back(deprecated in org 9.0) which had the limit parameter as optional. Since no limit is intended, just pass nil

evidence from docs

Signature
(looking-back REGEXP LIMIT &optional GREEDY)

Documentation
Return non-nil if text before point matches regular expression REGEXP.

Like looking-at except matches before point, and is slower.
LIMIT if non-nil speeds up the search by specifying a minimum
starting position, to avoid checking matches that would start
before LIMIT.
tecosaur commented 3 years ago

Thanks for this PR :slightly_smiling_face: I'm thinking this is actually nicer without the rx though, so I've done this slightly differently in 00e299c77d0c1ae0907cefb34081e5174b3eacdd.