Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spellchecking highlights. #15

Open
artelse opened this issue Nov 28, 2021 · 8 comments
Open

Spellchecking highlights. #15

artelse opened this issue Nov 28, 2021 · 8 comments

Comments

@artelse
Copy link

artelse commented Nov 28, 2021

Spellchecking now highlights the whole word, to me this is a bit too emphasized. Are there plans to make these less intrusive; i.e. underline or similar? (And no, no bright red crinkles ;)
[via Emacsconf2021]

@rougier
Copy link
Owner

rougier commented Dec 15, 2021

I get the same feeling actually. Maybe a simple underline in salient color would work. Do you want to make a PR?

@artelse
Copy link
Author

artelse commented Dec 18, 2021

I've experimented with underlining:

(custom-set-faces
   `(flyspell-incorrect ((t (:underline (:color ,nano-light-salient :style line)))))
   `(flyspell-duplicate ((t (:underline (:color ,nano-light-salient :style line))))))

which just puts an underline on the words. But am not that pleased with how emacs applies the underline. It is almost on the baseline of the font which is not adjustable as far as I can see. Another option might be to add a faint background or tune the color intensity of the font down, but that's quite non-standard.

@artelse
Copy link
Author

artelse commented Dec 26, 2021

It appears one can control the underline offset. Here is my current configuration for flyspell and highlighting. Note that I am not familiar yet with github pr's, but is on my todo list to learn about.

(custom-set-faces
   `(flyspell-incorrect ((t (:underline (:color ,nano-light-salient :style line) :foreground "default" ))))
   `(flyspell-duplicate ((t (:underline (:color ,nano-light-salient :style line) :foreground "default" )))))
(setq underline-minimum-offset 3)

@rougier
Copy link
Owner

rougier commented Jan 3, 2022

Thanks. For the PR, you can do directly from GitHub by first forking the repository and edit the file onine. Then GitHub will propose you to make a PR automatically.

For the line offset, does it change the line spacing with a value of 3?

@artelse
Copy link
Author

artelse commented Jan 10, 2022

Yes, it does. Just saw that Emacs 29 enables a :position property on :underline.
Regarding the PR, will do, but am severely short on time atm.

@rougier
Copy link
Owner

rougier commented Jan 17, 2022

No problem, I can wait (but I won't be able to test, I'm still using emacs 27)

@artelse
Copy link
Author

artelse commented Jan 17, 2022

Ok, am still learning about Emacs and currently in the process of setting up with git and local editing of repos, etc.

@rougier
Copy link
Owner

rougier commented Jan 31, 2022

I've uploaded a few changes to the theme including flyspell which is a bit lighter:

Screenshot 2022-01-31 at 17 40 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants