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

Bug#962591: babel conf and minted



Package: org-mode
Version: 9.3.1+dfsg-1
Severity: normal

Hello, I am wrinting a document with org-mode
It contain this

   #+BEGIN_SRC conf
     [dispatcher]
     # ncores =
     destination = .
     overwrite = false
     [input]
     type = sixs:flyscanuhv
     nexusdir = /home/picca/hkl/contrib/haskell/
     [projection]
     type = qxqyqzprojection
     resolution = 1.0e-2,1.0e-2,1.0e-2
   #+END_S

and I am using

#+LaTeX_HEADER: \usepackage{minted}
#+LaTeX_HEADER: \usemintedstyle{tango}

It is nice because the right minor mode is used to edit this code.

but when I export this as pdf, this snipset is exported like this

\begin{minted}[]{conf}
[dispatcher]
# ncores =
destination = .
overwrite = false
[input]
type = sixs:flyscanuhv
nexusdir = /home/picca/hkl/contrib/haskell/
[projection]
type = qxqyqzprojection
resolution = 1.0e-2,1.0e-2,1.0e-2
\end{minted}

the problem is that minted does not know about conf.

$ pygmentize -L lexers | grep ini
* ini, cfg, dosini:
    INI (filenames *.ini, *.cfg, *.inf)
* minid:
    MiniD

Instead of conf minted expect ini|cfg|doseini for this kind of source code.

To solve this issue, it seems to me that org-mode should convert conf into ini when exported to mint.

the other solution is to learn about cfg|ini|nodeini, whcih should be nice also.

cheers

Frederic

-- System Information:
Debian Release: bullseye/sid
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages org-mode depends on:
ii  elpa-org  9.3.1+dfsg-1

org-mode recommends no packages.

org-mode suggests no packages.

-- no debconf information


Reply to: