Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Allow to add other face attributes (such as underline) #9

Open
svauban opened this issue Oct 9, 2014 · 4 comments
Open

Allow to add other face attributes (such as underline) #9

svauban opened this issue Oct 9, 2014 · 4 comments
Labels
enhancement pull request welcome If you want this feature, feel free to implement it and submit a pull request!

Comments

@svauban
Copy link

svauban commented Oct 9, 2014

Hello,

I'd like to get the same effect with your package as what one gets in Sublime Text, that is the first level of nearest parens underlined.

One could as well imagine bold or such for that.

Currently, I just have the first level of parens highlighted, but with colors. I miss the others params.

Thanks!

@tsdh
Copy link
Owner

tsdh commented Apr 15, 2015

Currently, you can customize hl-paren-face which applies to all surrounding parens. The values of hl-paren-colors and hl-paren-background-colors are used to define foreground/background colors of the nearest N-th paren pair.

So as it stands now, you can only distinguish the paren levels by their foreground/background colors right now.

@tsdh
Copy link
Owner

tsdh commented Apr 22, 2015

Related: #6, #4

Both PRs were declined but I suggested the introduction of a new defcustom hl-paren-face-attributes which would allow a paren-level-wise configuration of all face attributes. (Of course we still need to keep hl-paren-colors/hl-paren-background-colors for backward compatibility reasons.)

And the same to you as to the other two: PR welcome!

@tsdh tsdh added the pull request welcome If you want this feature, feel free to implement it and submit a pull request! label Mar 3, 2018
@holtzermann17
Copy link

FYI here is an (undocumented) hack that will turn off foreground colors, which allows other face features to be set elsewhere.

(setq hl-paren-colors '(t)) 

E.g., I have hl-paren-face set like this now:

(set-face-attribute 'hl-paren-face nil
                    :height 0.6)

@tsdh
Copy link
Owner

tsdh commented Feb 5, 2021

@holtzermann17 What this issue is about is being able to set different attribute values depending on the "paren level", i.e., make the immediately surrounding parens bold, the next pair underlined, the next outer pair a bit smaller, etc. In your example, every surrounding pair of parens will have the height 0.6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement pull request welcome If you want this feature, feel free to implement it and submit a pull request!
Projects
None yet
Development

No branches or pull requests

3 participants