Hello,
Giacomo M writes:
> Ok, rudimentary elisp knowledge seems to help here:
>
> #+BEGIN_SRC emacs-lisp
> (defun jack/dos2unix-post-tangle-hook ()
> (set-buffer-file-coding-system 'unix 't)
> (save-buffer)
> )
> (add-hook 'org-babel-post-tangle-hook 'jack/dos2unix-post-tangle-hook)
> #+END_SRC
Ok, rudimentary elisp knowledge seems to help here:
#+BEGIN_SRC emacs-lisp
(defun jack/dos2unix-post-tangle-hook ()
(set-buffer-file-coding-system 'unix 't)
(save-buffer)
)
(add-hook 'org-babel-post-tangle-hook
'jack/dos2unix-post-tangle-hook
Dear Kashual,
1. I visit a (Unix EOL[1]) org file on Windows.
2. I write a shell script in a shell source block to be tangled.
3. I tangle it.
4. As a result, I get a (Windows EOL) shell script, while I would like a
Unix EOL shell script.
Thanks,
Giacomo
[1] End Of Line convention
On Jun 21, 2
On Wed, Jun 21, 2017, 5:21 AM Giacomo M wrote:
> Hi all,
>
> I'm using emacs also under Windows, and would need to tangle
> scripts/config files to be used under Unix.
Is there any header argument
> to enforce the desired new line characters in the tangled files?
>
At which point would you lik