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

Thanks,

Giacomo

Il 6/21/2017 1:02 PM, Kaushal Modi ha scritto:
On Wed, Jun 21, 2017, 5:21 AM Giacomo M <jackja...@gmail.com> 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 like to enforce the new line characters?

Can you post a MWE and explain what that it tangles to vs what you'd actually like to see in the tangled file?
--

Kaushal Modi


Reply via email to