astoff / code-cells.el

Emacs utilities for code split into cells, including Jupyter notebooks
GNU General Public License v3.0
180 stars 11 forks source link

How to mark cell boundaries with horizontal divider in percent format #16

Closed FlorianOtel closed 1 year ago

FlorianOtel commented 1 year ago

Asking for guidance on how to mark cell boundary with horizontal divider -- as shown here: https://raw.githubusercontent.com/astoff/code-cells.el/images/screenshot.png

After instructing jupytext to use Jupytext - percent format the cells are shown correctly, but without the horizontal divider as in the screenshot above.

If this is a matter of configuring e.g. outline-minor-mode please provide instructions on how to do that and mark cell boundaries with horizontal divider.

Kind TIA for the advice -- and thanks for creating this lovely piece of code :)

astoff commented 1 year ago

You just need to enable code-cells-mode. If you don't see the highlight, there must be something else in your configuration conflicting with it (test with emacs -Q).

FlorianOtel commented 1 year ago

First, thanks for your answer

I have tried this:

Still no boundary between cells -- see attached screenshot (with light theme, it's the same with dark theme)

image

Edit: This is emacs 27.1 on Unbutu 20.04 under WSL2, with code-cells installed from ELPA under .emacs.d

astoff commented 1 year ago

From the screenshot it seems that you are running Emacs on the terminal. There, "overlining" text is just not available.

There's not much I can do here, except, perhaps, add a different cell boundary face on the terminal. It might be tricky to find a safe face that will work on any theme, but I'm open to suggestions.