I have this in my prelude personal/init.el but it doesn't work in my terminal emacs:
(set-background-color "grey15")
(set-face-attribute 'region nil :background "#666")
(print "Hello from personal/init.el")
The message gets printed, however the background color isn't changed. It does work with the GUI emacs. It also works when I manually evaluate it in the terminal emacs. What's up...Works for me. Which OS / Terminal / Emacs version? I'm running Linux Pop_OS!, Emacs 26.3, Terminator
Or does it work if you evaluate it inline?
Ah yeah, it doesn't work when it's loaded during initialization
OS: Ubuntu 20.04 in WSL2, Emacs 26.3, terminal http://iTerm2.app in macOS
Try this instead:
(set-face-background 'default "grey15")
works!
Unless you're changing the region somewhere else (or loading a theme, but probably not) the region line should work
thanks a lot
Why are you running Pop_OS!, are you using a System76 laptop?
I have a mini desktop and a System76 laptop. Wanted to try something new (after having used Fedora for a long time). Decided to give it a try and was really happy with it. It's a bit less strict regarding packages than Fedora which is nice. They also have a lot of Flatpak packages in the store (instead of installing everything through deb, I like having "apps" isolated from system dependencies). Based on Ubuntu so that's quite stable. Has a lot of support for the gaming market which is plus for me.
But I don't know what the packaging state is of Ubuntu. Might not be worth switching if you're already using that
System76 also puts a lot of work into improving Gnome3 which is just nice overal (battery life, tiling system, high resolution display support)
Thanks for sharing
Annoooying: https://stackoverflow.com/a/6268264/6264
This actually worked to fix it: https://stackoverflow.com/a/25900375/6264
Is it possible to get these kind of visual hints when you change something git-related on the side in a terminal emacs?
I don't think so. Since the fringe is only supported in GUI Emacs
da'mn
There is a non fringe version
Just wondering, why don't you use the GUI version?
So just git-gutter I should install?
Yeah, without the fringe. Not sure what the +
is
Because I'm working on a remote system (well, just a PC in my room, but I don't have a keyboard attached to it).
SSH? and you have Emacs installed there?
yes
I thought I remembered you mentioning using TRAMP some time ago. So I assume you've looked into that 🙂
Which I guess isn't an option for some reason?
I'm using tramp, but this was slow with magit-status. Also I got strange hangups in dired.
So now I'm trying this
Another option is working in the RDP session
just figuring it out still
git-gutter seems to work btw
Haven't used tramp in a while myself. But a couple of jobs back we had a lot of remote servers, and I used tramp for that (including Magit). Worked quite well
I do remember having to tweak my settings to make it work fast though
if you remember those tweaks, feel free to share. one benefit of working over ssh is that I can access all the machines in the same way
This is what I used during that time https://github.com/kwrooijen/.emacs.d/tree/40e0054b012814fd1550e3c6648af4a22e73df72#tramp
I don't really see anything specific that should fix the issue though 😕
Maybe setting tramp-completion-reread-directory-timeout
to nil
, possibly
Although I think that was more Helm related
Maybe it's just WSL2 that's being weird. Btw, I also had to tweak my login shell scripts to make tramp work, since it didn't understand the output from zsh
Maybe the dired problem is related to that
I think I disabled zsh because I couldn't get it to work but idk. 'twas a while ago
What I do in the zsh script is when TERMINAL is set to dumb, I just execute bash
This fixed most of the stuff
oh yes, one other thing with tramp was that flycheck clj-kondo did work, but of course it doesn't resolve the right config. it's a bit complex
And emacs on Windows just doesn't look so good
also not via the X server, or maybe it's just something I need to get used to