emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
borkdude 2020-08-03T11:13:22.056300Z

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...

kwrooijen 2020-08-03T11:18:15.057200Z

Works for me. Which OS / Terminal / Emacs version? I'm running Linux Pop_OS!, Emacs 26.3, Terminator

kwrooijen 2020-08-03T11:18:49.057700Z

Or does it work if you evaluate it inline?

kwrooijen 2020-08-03T11:21:41.058400Z

Ah yeah, it doesn't work when it's loaded during initialization

borkdude 2020-08-03T11:21:43.058600Z

OS: Ubuntu 20.04 in WSL2, Emacs 26.3, terminal http://iTerm2.app in macOS

kwrooijen 2020-08-03T11:22:41.058900Z

Try this instead: (set-face-background 'default "grey15")

borkdude 2020-08-03T11:23:52.059100Z

works!

kwrooijen 2020-08-03T11:24:28.059700Z

Unless you're changing the region somewhere else (or loading a theme, but probably not) the region line should work

borkdude 2020-08-03T11:24:54.059900Z

thanks a lot

👍 1
borkdude 2020-08-03T11:28:07.060100Z

Why are you running Pop_OS!, are you using a System76 laptop?

kwrooijen 2020-08-03T11:33:17.060300Z

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.

kwrooijen 2020-08-03T11:34:28.060500Z

But I don't know what the packaging state is of Ubuntu. Might not be worth switching if you're already using that

kwrooijen 2020-08-03T11:37:17.060700Z

System76 also puts a lot of work into improving Gnome3 which is just nice overal (battery life, tiling system, high resolution display support)

borkdude 2020-08-03T11:42:42.060900Z

Thanks for sharing

borkdude 2020-08-03T15:24:20.061400Z

Annoooying: https://stackoverflow.com/a/6268264/6264

borkdude 2020-08-03T15:30:10.061800Z

This actually worked to fix it: https://stackoverflow.com/a/25900375/6264

borkdude 2020-08-03T15:37:27.062300Z

Is it possible to get these kind of visual hints when you change something git-related on the side in a terminal emacs?

kwrooijen 2020-08-03T15:38:58.063200Z

I don't think so. Since the fringe is only supported in GUI Emacs

borkdude 2020-08-03T15:39:30.063400Z

da'mn

kwrooijen 2020-08-03T15:39:39.063600Z

https://github.com/emacsorphanage/git-gutter

ericdallo 2020-08-03T15:39:45.064Z

https://github.com/emacsorphanage/git-gutter-fringe

kwrooijen 2020-08-03T15:39:46.064100Z

There is a non fringe version

☝️ 1
kwrooijen 2020-08-03T15:40:44.064900Z

Just wondering, why don't you use the GUI version?

borkdude 2020-08-03T15:40:48.065Z

So just git-gutter I should install?

kwrooijen 2020-08-03T15:41:16.066Z

Yeah, without the fringe. Not sure what the + is

borkdude 2020-08-03T15:41:21.066200Z

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).

kwrooijen 2020-08-03T15:41:35.066500Z

SSH? and you have Emacs installed there?

borkdude 2020-08-03T15:42:54.067200Z

yes

kwrooijen 2020-08-03T15:42:58.067400Z

I thought I remembered you mentioning using TRAMP some time ago. So I assume you've looked into that 🙂

kwrooijen 2020-08-03T15:43:35.067800Z

Which I guess isn't an option for some reason?

borkdude 2020-08-03T15:45:16.068300Z

I'm using tramp, but this was slow with magit-status. Also I got strange hangups in dired.

borkdude 2020-08-03T15:45:28.068500Z

So now I'm trying this

borkdude 2020-08-03T15:45:42.068800Z

Another option is working in the RDP session

borkdude 2020-08-03T15:45:49.069Z

just figuring it out still

borkdude 2020-08-03T15:46:44.069500Z

git-gutter seems to work btw

kwrooijen 2020-08-03T15:47:06.070Z

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

kwrooijen 2020-08-03T15:47:22.070300Z

I do remember having to tweak my settings to make it work fast though

borkdude 2020-08-03T15:48:37.070800Z

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

kwrooijen 2020-08-03T15:49:49.071Z

This is what I used during that time https://github.com/kwrooijen/.emacs.d/tree/40e0054b012814fd1550e3c6648af4a22e73df72#tramp

kwrooijen 2020-08-03T15:51:20.071500Z

I don't really see anything specific that should fix the issue though 😕

kwrooijen 2020-08-03T15:51:59.072Z

Maybe setting tramp-completion-reread-directory-timeout to nil, possibly

kwrooijen 2020-08-03T15:52:15.072300Z

Although I think that was more Helm related

borkdude 2020-08-03T15:52:17.072500Z

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

borkdude 2020-08-03T15:53:29.073400Z

Maybe the dired problem is related to that

kwrooijen 2020-08-03T15:53:41.073600Z

I think I disabled zsh because I couldn't get it to work but idk. 'twas a while ago

borkdude 2020-08-03T15:54:30.074200Z

What I do in the zsh script is when TERMINAL is set to dumb, I just execute bash

borkdude 2020-08-03T15:54:38.074400Z

This fixed most of the stuff

borkdude 2020-08-03T16:01:42.075100Z

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

borkdude 2020-08-03T16:03:00.075500Z

And emacs on Windows just doesn't look so good

borkdude 2020-08-03T16:03:14.075800Z

also not via the X server, or maybe it's just something I need to get used to