[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?) |
Date: |
Wed, 29 Mar 2023 09:35:44 +0000 |
Matt <matt@excalamus.com> writes:
> Does anyone know which function is responsible for re-fontifing source
> blocks?
`org-src-font-lock-fontify-block', which is using major-mode's native
fontification. The major mode is determined by `org-src-get-lang-mode',
which can be customized using `org-src-lang-modes'.
Org provides some defaults for bash in `org-src-lang-modes' but not for
other shell flavours. I guess we can add more defaults to
`org-src-lang-modes', if we know for sure that e.g. zsh can be fontified
sh-mode.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Font lock for org-babel shell scripts?, Derek Chen-Becker, 2023/03/28
- Re: Font lock for org-babel shell scripts?, Matt, 2023/03/28
- [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Matt, 2023/03/28
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?),
Ihor Radchenko <=
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Derek Chen-Becker, 2023/03/29
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Matt, 2023/03/29
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Ihor Radchenko, 2023/03/30
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Derek Chen-Becker, 2023/03/30
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Ihor Radchenko, 2023/03/31
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Derek Chen-Becker, 2023/03/31
- Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?), Ihor Radchenko, 2023/03/31