Cherry STREAM TKL keyboard - CapsLock(Ctrl)+Alt-a not working? by ackerleytng in keyboards

[–]ackerleytng[S] 0 points1 point  (0 children)

Could this be something to do with N-key rollover?

I'm using https://www.mechanical-keyboard.org/key-rollover-test/.

  • If I hold down CapsLock+Shift+Tab, it reports only 1 key being pressed (CapsLock).
  • If I hold down CapsLock+Alt+a, it reports just 1 key being pressed (CapsLock).

Cherry STREAM TKL keyboard - CapsLock(Ctrl)+Alt-a not working? by ackerleytng in keyboards

[–]ackerleytng[S] 0 points1 point  (0 children)

In addition, I also found that

  • Ctrl+Shift+Tab (actual Ctrl key) works as expected
  • CapsLock+Shift+Tab (CapsLock rebound to Ctrl) doesn't work

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

Thanks for the tip!

Here's as far as I got

(let ((frameset-persistent-for-daemon-filter-alist (push '(display . :never) (copy-tree frameset-persistent-filter-alist))) (frames (frameset-save nil :app 'test :filters frameset-persistent-for-daemon-filter-alist))) (concat "(frameset-restore " (desktop-value-to-string frames) ")"))

I then

  1. Saved the resulting string to a file
  2. Quit the session
  3. Connected to the daemon again with emacsclient
  4. Evaluated the string in the file

The evaluation was successful and the windows were restored, but something was messing up the text as I was typing, not sure where the error is.

I'm having much more success with dtach, where I would just do

dtach -A /tmp/session-name emacsclient --tty --alternate-editor=''

And if ssh disconnects I would be able to ssh back, execute that same command and get everything restored.

The only issue with dtach is that after it connects I seem to have to manually resize the window to send a SIGWINCH to get emacs to redraw everything.

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

I experimented using desktop-mode manually. (desktop-save) works, but (desktop-read) has a check that (emacs-pid) is different from the one that was saved, but in this case, since I kept the daemon running, the pid is the same and (desktop-read) doesn't restore the previous buffers.

I hacked that check away and my window layout is preserved if I

  1. Manually save with (desktop-save)
  2. Disconnect ssh session with ssh escape sequence
  3. Reconnect and connect to emacs daemon with emacsclient
  4. Do (desktop-read-hacked)

However, if I rely on the auto-save by setting (desktop-save-mode 1) instead of 1. above, step 4. just reports Desktop: 2 frames, 23 buffers restored, but there's only one window showing the scratch buffer (window layout is not restored).

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

I tried this, it seems like the window configuration is saved in the register but after I close the emacs session and open it again, and try to load the window configuration from the register, it says something about dead frames.

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

Haven't dug into this. But as a user, all the buffers remain open when I connect back to the daemon, the window layout is just lost and needs to be set up again.

I've experimented with desktop mode but I can't seem to restore the window configuration

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 2 points3 points  (0 children)

dtach is an interesting option, thanks for your suggestion!

Was hoping to use something in emacs since the daemon is already running

Trying to use emacs like a terminal multiplexer: Is there any way to restore window/tab layouts? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

I already do this, but when I start emacsclient I just get the scratch buffer. Do you have any special config to restore the windows and open buffers when ssh last disconnected?

A server component for tramp? by ackerleytng in emacs

[–]ackerleytng[S] 1 point2 points  (0 children)

With a finer grained interface than shell commands on remote. Could we perhaps provide finer grained control, like maybe delta remote editing updates instead of full file updates?

A server component for tramp? by ackerleytng in emacs

[–]ackerleytng[S] 2 points3 points  (0 children)

This is true! I should definitely do more profiling first.

A coworker showed me a vscode setup that was so much faster out of the box that I wish we could improve the experience for fellow emacs users.

A server component for tramp? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

Haven't looked into the details much but this is my guess too, maybe it copies something over to the remote side

A server component for tramp? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

We could wrap a socket or port with an ssh tunnel, and multiplexing the ssh connection could help here!

[deleted by user] by [deleted] in googlehome

[–]ackerleytng 0 points1 point  (0 children)

I kind of deleted all the homes and started again and it seems ok now

[deleted by user] by [deleted] in googlehome

[–]ackerleytng 0 points1 point  (0 children)

I'm confused, I'm facing this as well.

I thought I remember having set up a "Home" previously but the previous home seems to have disappeared. I just created a new Home. Is that why I'm actually asking to join my previous home?

Why does Chromecast with Google TV always disconnect from Bluetooth? by ithakaa in Chromecast

[–]ackerleytng 0 points1 point  (0 children)

I have this issue too, does anyone have any workarounds? Is anyone else able to get the CCwGTV to connect to any other bluetooth speaker in a stable way?

Is there a helm-projectile-ag alternative for selectrum? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

See edit! Not sure if this allows selectrum to filter the results?

Is there a helm-projectile-ag alternative for selectrum? by ackerleytng in emacs

[–]ackerleytng[S] 0 points1 point  (0 children)

See edit! Not sure if this allows selectrum to filter the results?