Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I escape double-brackets [[ in-line in org-mode

Tags:

emacs

r

org-mode

I need to display some R code in-line that contains double brackets.. e.g., =x[[1]]= and src_R{x[[1]]} are evaluated as a link.

How can I escape those double brackets, or otherwise disable the linking using inline code blocks?

like image 949
paralogical Avatar asked Apr 04 '12 15:04

paralogical


1 Answers

Maybe you can customize the variable org-activate-links to resolve this issue.

The default value of org-activate-links includes bracket to activate double brackets as certain links. If you remove this symbol from org-activate-links as below, they won't be displayed as links automatically in org-mode.

(setq org-activate-links '(angle plain radio tag date footnote))
like image 188
Julian Qian Avatar answered Sep 21 '22 03:09

Julian Qian