Next: , Previous: shebang, Up: Specific header arguments :tangle-mode

The tangle-mode header argument specifies what permissions to set for tangled files by set-file-modes. For example, to make read-only tangled file, use :tangle-mode (identity #o444). To make it executable, use :tangle-mode (identity #o755).

On ‘src’ code blocks with shebang (see shebang) header argument, Org will automatically set the tangled file to executable permissions. But this can be overridden with custom permissions using tangle-mode header argument.

When multiple ‘src’ code blocks tangle to a single file with different and conflicting tangle-mode header arguments, Org's behavior is undefined.