[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no syntax highlighting for code blocks with org-publish
From: |
Tim Cross |
Subject: |
Re: no syntax highlighting for code blocks with org-publish |
Date: |
Wed, 20 Jul 2022 08:33:42 +1000 |
User-agent: |
mu4e 1.8.6; emacs 29.0.50 |
"M. Pger" <mpger@protonmail.com> writes:
> I tried to publish using `M-x org-publish RET <name_of_project> RET` as you
> suggested, and
> syntax highlighting was actually implemented, thanks.
>
> Actually the problem is coming from the fact that I use `emacs -Q --script
> build.el` (as a
> bash script) to publish the project. According to
> https://list.orgmode.org/AE5693F1-F63D-4383-8840-0FD2DBAAC5D6@gmail.com/
> (rather old, but
> apparently this has not changed), font-lock-mode is not enabled by default in
> --batch
> mode. Since `--script` "run Emacs in batch mode, like ‘--batch’, and then
> read and execute
> the Lisp code in file" (cf the doc), it seems that this is exactly my problem.
>
> A workaround is suggested in
> https://list.orgmode.org/AE5693F1-F63D-4383-8840-0FD2DBAAC5D6@gmail.com/, but
> unfortunately for me it does not work (yet). I am going to dig further into
> that.
>
I would be interested to hear how you go. I have a use case coming up
where I need to publish a large number of org files using a batch job,
so expect to run into the same issue. Right now, I'm still getting my
head around how to best get a consistent style when the input comes from
multiple org files from different sources and I want to minimise editing
the sources, plus provide a simple way to update/change the styling
later.
- no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/17
- Re: no syntax highlighting for code blocks with org-publish, Ihor Radchenko, 2022/07/17
- Re: no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/18
- Re: no syntax highlighting for code blocks with org-publish, Tim Cross, 2022/07/18
- Re: no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/18
- Re: no syntax highlighting for code blocks with org-publish, Tim Cross, 2022/07/19
- Re: no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/19
- Re: no syntax highlighting for code blocks with org-publish,
Tim Cross <=
- Re: no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/19
- Re: no syntax highlighting for code blocks with org-publish, M. Pger, 2022/07/20
- Re: no syntax highlighting for code blocks with org-publish, Ihor Radchenko, 2022/07/21