emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Controlling new line characters during tangle


From: Giacomo M
Subject: Re: [O] Controlling new line characters during tangle
Date: Thu, 22 Jun 2017 11:40:50 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

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 <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]