From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Giacomo M <jackjackk@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>,
Kaushal Modi <kaushal.modi@gmail.com>
Subject: Re: Controlling new line characters during tangle
Date: Sat, 01 Jul 2017 14:35:18 +0200 [thread overview]
Message-ID: <87r2y02v3t.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <c551b617-4229-2daf-e7f8-62bfc65ea097@gmail.com> (Giacomo M.'s message of "Thu, 22 Jun 2017 11:40:50 +0200")
Hello,
Giacomo M <jackjackk@gmail.com> 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
Thank you for sharing.
Would it make sense to provide a :tangle-coding-system attribute? Would
you want to implement it?
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2017-07-01 12:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-21 9:19 Controlling new line characters during tangle Giacomo M
2017-06-21 11:02 ` Kaushal Modi
2017-06-21 11:22 ` Giacomo M
2017-06-22 9:40 ` Giacomo M
2017-07-01 12:35 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2y02v3t.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=jackjackk@gmail.com \
--cc=kaushal.modi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.