auctex
[Top][All Lists]
Advanced

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

Indenting the code written in square brackets as optional parameters


From: निरंजन
Subject: Indenting the code written in square brackets as optional parameters
Date: Wed, 02 Mar 2022 17:59:25 +0000

Hello,

------------------------------------------------------------
Disclaimer: I am very new to Emacs hacking, so probably I
            won't be able to submit patches regarding this.
------------------------------------------------------------

I am having a code like the following in my mind:

-----------------------
\documentclass{article}
\usepackage[%
  Scale=1.5,%
  Renderer=Harfbuzz%
]{fontspec}
-----------------------

Why not to support indentation of the code inside the square
brackets? Currently it doesn't get indented. This support
can be very useful for packages which have complicated
optional parameters, like say, package `hyperref'. Or even
better would be an example from package `forest'. See the
following code which has nested square brackets:

-----------------------
\begin{forest}
[a
  [b
    [c]
  ]
]
\end{forest}
-----------------------

Please let me know if this is possible. Feel free to point
out the challenges or problem cases with this approach.

Best,
निरंजन



reply via email to

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