My current solution (which already differs from the last one I posted here...) is here:
https://github.com/jkitchin/scimax/blob/master/scimax-org-src-blocks.el#L61 It is more selective, and only changes the syntax inside these src blocks: "jupyter-python" "python" "emacs-lisp" and does not change the syntax if the character is in a string. That way it still works with xml and html in strings, or in their own blocks. This might be the third iteration of fixing this issue, so I wouldn't have the hubris to say it is the final solution yet. Eric S Fraga <e.fr...@ucl.ac.uk> writes: > I believe this has been mentioned in passing in this thread but I'll > repeat just in case: Unless you are working with xml or HTML in your org > documents, and even then, having these two lines in your org > configuration (e.g. org-mode-hook): > > (modify-syntax-entry ?< ".") > (modify-syntax-entry ?> ".") > > solves all the problems with languages that use these in an unbalanced > manner (comparison, assignment). I've had this configuration for years > now and it just works (for me). -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his