0

How do I modify the syntax table to make forward-sexp and backward-sexp correctly skip over backquoted (code) expressions?

For instance, if my markdown file contains a line like

The C statement is `int x = 1;`

if I stand with the cursor at the first backquote character and C-M-f I should move forward to the column on the same line just after the second backquote character.

1
  • 1
    You can set forward-sexp-function to the answer you get. ;-) But you might want to give an example, to make clear (1) the use of a "backquoted (code) expression" in your mark-down-mode text and (2) what you mean by "correctly skip over" such an expression. – Drew Aug 15 '20 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.