yasnippet-snippets icon indicating copy to clipboard operation
yasnippet-snippets copied to clipboard

org-mode/src: Suppress indentation

Open Miciah opened this issue 5 years ago • 1 comments
trafficstars

Before this change, trying to use the org-mode/src snippet with org-src-tab-acts-natively set to t would insert the snippet, print an error message in the echo area: "No such language mode: nil-mode", and leave point at the beginning of the first line of the snippet.

After this change, the snippet is expanded with no error message and with point in the correct position.

This change fixes https://github.com/joaotavora/yasnippet/issues/863.

  • snippets/org-mode/src: Set org-src-tab-acts-natively to nil to prevent Org-Mode from trying to indent the block with nil major mode.

Miciah avatar Feb 16 '20 02:02 Miciah

This might be better fixed in yasnippet itself?

npostavs avatar Mar 13 '20 11:03 npostavs