Live data from Hacker News

My I3-Emacs Integration

khz.ac

11–20 of 53 posts

Re: My I3-Emacs Integration

#12
post #3

I just use super(win key)/hyper (bound to capslock) for i3-related commands and leave emacs to its own devices with normal binds

Yeah this is what I do. This article feels like crazy overengineering for something that's not really a problem

Unless you have RSI. Then it might be worth it. Depends on what hurts.

Re: My I3-Emacs Integration

#13
Ooo this is nice. I may have to try to get this working with my personal setup using Emacs and Sway.

My long term vision is to make an Emacs implementation that is compatible only in philosophy. It would use Guile instead of Elisp, default to bindings that are more familiar to people coming from more modern systems, and would be built from the beginning with concurrency and graphics in mind. For now it remains a dream though.

Re: My I3-Emacs Integration

#15
Unrelated, but me and Gemini just invented "C-x 4" for multiscreens.

  (defun my-external-readonly-split ()
    "Open the current file in an external xfce4-terminal as read-only."
    (interactive)
    (if buffer-file-name
        (start-process "xfce-terminal-split" nil 
                       "xfce4-terminal" "-x" "emacs" "-nw" 
                       "--eval" "(find-file-read-only (pop command-line-args-left))"
                       buffer-file-name)
      (message "Current buffer is not visiting a file!")))

  (global-set-key (kbd "C-x 4") 'my-external-readonly-split)

Re: My I3-Emacs Integration

#16

Side note: I am really enjoying HN today with the set of stories with personal hacks like this i3-emacs integration, someone's desk setup, someone's writer-deck laptop install, the kinda hilarious but also hecka geeky thermal ttrpg thingamabob, and the 16 byte wake up demo. Fun geeky stuff that isn't AI,and I love AI, but it ain't everything.

Can you pls link to them?

Re: My I3-Emacs Integration

#17
post #13

Ooo this is nice. I may have to try to get this working with my personal setup using Emacs and Sway. My long term vision is to make an Emacs implementation that is compatible only in philosophy. It would use Guile instead of Elisp, default to bindings that are more familiar to people coming from more modern systems, and would be built from the beginning with concurrency and graphics in mind. For now it remains a drea…

VSCode is pretty much this. But with typescript instead of Guile. After 30 years of Emacs, I switched .

Re: My I3-Emacs Integration

#18
post #13

Ooo this is nice. I may have to try to get this working with my personal setup using Emacs and Sway. My long term vision is to make an Emacs implementation that is compatible only in philosophy. It would use Guile instead of Elisp, default to bindings that are more familiar to people coming from more modern systems, and would be built from the beginning with concurrency and graphics in mind. For now it remains a drea…

Sounds like you want Lem. Though it's common lisp instead of guile.

https://github.com/lem-project/lem

Re: My I3-Emacs Integration

#19

Unrelated, but me and Gemini just invented "C-x 4" for multiscreens. (defun my-external-readonly-split () "Open the current file in an external xfce4-terminal as read-only." (interactive) (if buffer-file-name (start-process "xfce-terminal-split" nil "xfce4-terminal" "-x" "emacs" "-nw" "--eval" "(find-file-read-only (pop command-line-args-left))" buffer-file-name) (message "Current buffer is not visiting a file!"))) (…

Incredibly splendid. I just tested it myself.

Try C-x 2, C-x 3 and C-x 4

Re: My I3-Emacs Integration

#20
I did the same integration with an Erlang daemon. All relevant key presses are sent to it and based on the current focused application the daemon does different things. I built an Erlang library i3_IPC to listen for events and send commands to Sway.
Post reply on HN