News for hackers. Stuff that matters.
Re:EmacsConf 2021 Call for Proposals by pdimitar on Thursday August 05, 2021 @04:52PM (#28079620)
Well okay, fair enough but it doesn't actually solve the problem. Modern terminals can render basically all colors your DE / display supports so I am not sure why there isn't a check for that and utilize the feature if it's there.
Re:EmacsConf 2021 Call for Proposals by alex_smart on Thursday August 05, 2021 @05:31PM (#28080179)
https://i.imgur.com/TFTOj8Z.png

This is with the default spacemacs theme. Can you tell which one is the terminal and which one the GUI?

https://www.gnu.org/software/emacs/manual/html_node/efaq/Col...

Emacs does have the feature you want. Perhaps your setup wasn't supported. Which terminal/os were you on?

Re:EmacsConf 2021 Call for Proposals by pdimitar on Thursday August 05, 2021 @05:33PM (#28080209)
Ouch.

macOS with iTerm2 and then Alacritty.

Now I am even more confused why it doesn't work well for me.

Re:EmacsConf 2021 Call for Proposals by spudlyo on Thursday August 05, 2021 @06:36PM (#28080948)
For your possible inspiration: Emacs in iterm2/tmux with 24-bit color, and a bunch of fancy icon sets mapped into the private use area running LSP mode looking a large Python code base[0].

[0]: https://muppetlabs.com/~mikeh/ttyemacs.png

Re:EmacsConf 2021 Call for Proposals by bloopernova on Thursday August 05, 2021 @08:47PM (#28081974)
Oh good lord, how do you get that sort of layout?

(I need to learn how Emacs manages its windows; Mostly I have one Treemacs buffer open on the left, then a single large editor window with Olivetti mode on the right.)

Re:EmacsConf 2021 Call for Proposals by spudlyo on Friday August 06, 2021 @12:07AM (#28083228)
If you have xterm-mouse-mode set it's pretty easy to size windows with your mouse. I just create the splits with the usual emacs window commands and then move things around with my mouse until I have things just right.
Re:EmacsConf 2021 Call for Proposals by alex_smart on Thursday August 05, 2021 @05:45PM (#28080362)
>why it doesn't work well for me

Possible reasons:

1. (macOS + inside terminal) isn't a common workflow for emacs contributors, or perhaps for people with that workflow working with 256 colors isn't an issue

2. people who want that workflow who care about having 24 bit colors didn't bother to file a bug report (did you?)

Bitter pill, but I hope it helps: as a beginner to an ecosystem, if you are going to be opinioniated about having an unusual workflow, you are always going to run into problems. If you are running Emacs locally, just run it in GUI mode, that's what most people do.

Re:EmacsConf 2021 Call for Proposals by pdimitar on Thursday August 05, 2021 @06:04PM (#28080591)
I do run Emacs in GUI mode and it's embarrassingly slow due to various factors I gradually managed to pinpoint:

1. 5K retina display (other Mac owners seem to share the experience)

2. A font with a lot of graphemes (those without emoji seem to render faster)

3. The synchronous nature of LSP; I still don't get it why LSP can't work asynchronously in Emacs -- it does in VIM.

Hence me asking about terminal mode where it also works rather confusingly to me (I mean the colors).

> (macOS + inside terminal) isn't a common workflow for emacs contributors

As a guy who worked on OSS before -- and wants to do it again -- I am never feeling entitled to other people's work. I just wonder why those scenarios are supported in the first place (if no contributors are interested in making them work well).

> as a beginner to an ecosystem, if you are going to be opinioniated about having an unusual workflow, you are always going to run into problems

Fair enough and I don't think it's a bitter pill at all, I appreciate the feedback. But again, I am wondering why the supposedly first-class option (GUI) is also having problems. :(

> 2. people who want that workflow who care about having 24 bit colors didn't bother to file a bug report (did you?)

I wouldn't even know where to begin. The whole community and ecosystem seem extremely foreign to me and I never even got as far as to find a bug report template (admittedly I didn't try very hard). There's just something... alienating about this community, especially Emacs devs. Maybe I am wrong, I hope I am wrong but, just an accumulated feeling.

In any case, the reason I am getting a bit ticked off is that Emacs is supposedly hugely popular. I'd expect a 5K screen and some richer fonts to not trip it but perhaps you're right that macOS isn't a focus.

Re:EmacsConf 2021 Call for Proposals by alex_smart on Thursday August 05, 2021 @06:52PM (#28081113)
>5K retina display >A font with a lot of graphemes

You might have fun reading the article linked here:

https://news.ycombinator.com/item?id=12830206

>The synchronous nature of LSP; I still don't get it why LSP can't work asynchronously in Emacs

Oh god, that is actually terrible.

> I never even got as far as to find a bug report template

The official way to file a bug report is M-x report-emacs-bug.

>especially Emacs devs

What's that feeling based on?

Re:EmacsConf 2021 Call for Proposals by geofft on Thursday August 05, 2021 @07:31PM (#28081421)
What is the output of "echo $TERM" and "tput colors"?
Re:EmacsConf 2021 Call for Proposals by pdimitar on Thursday August 05, 2021 @07:36PM (#28081458)
It's actually 256 for both. WTF, apparently I didn't setup iTerm2 correctly. Let me get to it...
Re:EmacsConf 2021 Call for Proposals by geofft on Thursday August 05, 2021 @08:31PM (#28081865)
Actually never mind, those commands don't know anything about true colors (> 256). I think you want to check for $COLORTERM according to https://gist.github.com/XVilka/8346728 ?
Re:EmacsConf 2021 Call for Proposals by pdimitar on Friday August 06, 2021 @03:33AM (#28084269)
It returns "truecolor" alright.
Re:EmacsConf 2021 Call for Proposals by Jtsummers on Thursday August 05, 2021 @04:57PM (#28079689)
You'll need to make sure that your terminal actually supports the variety of colors that emacs is emitting and that your terminal palette matches your emacs GUI color palette. Emacs can't magically switch your terminal from a 16-color mode to 256-colors, or change the palette.
Re:EmacsConf 2021 Call for Proposals by pdimitar on Thursday August 05, 2021 @05:34PM (#28080223)
I guess I have to tinker with the palette. Thought I didn't have to when the terminal supports a lot of colors.