agda-mode icon indicating copy to clipboard operation
agda-mode copied to clipboard

use user editor font information

Open zamfofex opened this issue 5 years ago • 4 comments

I’m one of those crazy weirdos who happen to prefer to write programs in a proportional typeface. It would be really cool if the package could respect the font I chose for my editor.

I was able to do this myself by having the following in my styles.less file, but I feel like it would be preferable if this was done by the package itself.

.agda-body-container
{
	font-family: var(--editor-font-family) !important;
	font-size: var(--editor-font-size) !important;
	line-height: var(--editor-line-height) !important;
}

zamfofex avatar Mar 05 '19 04:03 zamfofex

Wow I don't know we can do this!

banacorn avatar Mar 06 '19 06:03 banacorn

@Zambonifofex I'm rewriting the stylesheet and basing the constants on these variables. But as for --editor-line-height I can't find any way to change and test it. Do you know how to change them?

banacorn avatar Apr 17 '19 09:04 banacorn

It’s in the editor configurations. The setting is called “line height”. (Very offputtingly, settings in Atom are ordered alphabetically, so related settings are not grouped together.)

zamfofex avatar Apr 17 '19 09:04 zamfofex

Ahh, I see! Thanks for the prompt reply 😊

banacorn avatar Apr 17 '19 09:04 banacorn