frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Emacs Widget Toolkit

https://appetrosyan.github.io/posts/emacs-widget.html
48•signa11•9mo ago

Comments

spit2wind•9mo ago
There's also the Emacs Widget Library[1] (which I hoped this posted would be about). It's a plain text widget library that's quite powerful. Unfortunately (and surprisingly for Emacs), the documentation for it could use some love.

My understanding of the Widget Library is that it attaches various keywords and plists to a symbol which is considered the "widget". The library otherwise consists of functions that expect certain keywords on the "widget" symbol in order to perform actions or to be drawn on the screen.

The challenge is, the documentation doesn't clearly lay out what the keyword API is. This makes it hard to compose widgets in ways beyond what's shown in the docs.

[1] https://www.gnu.org/software/emacs/manual/html_mono/widget.h...

appetrosyan•9mo ago
The idea is that we extend that and give it direct access to SDL. Such that we can e.g. run a shader in the buffer background, or allow you to have floating windows (frames) interacting with each other.

I am very aware of the advantages conferred by TUI and I seek to expand those to the GUI; not dumb-down to the level of modern GUI toolkits (that to be fair are dealing with a completely different problem). Hopefully, this can lead to some ideas being easier to implement from within Emacs.

_mlbt•9mo ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•9mo ago
Personally, and contrary to the article, I do prefer Emacs's plain text widgets over more "GUI-like" ones. Plain text widgets minimize the differences between TUI and GUI Emacs and also inherently offer text selection, searching, copying, and pasting, which nicely integrates with Emacs. I mean, not many GUI frameworks let you place a cursor within a button and select its text, do they? I believe this is a unique advantage of text-based widgets: while other GUI applications require a dedicated mechanism for searching through their settings, text-based widgets allow you to use any text-searching packages to perform these actions.

Reading through the article, the author seems to be hoping for a pure GUI approach with Emacs-like navigation mechanisms, but I am not convinced that this can be as flexible as text-based widgets. However, for packages used exclusively within a GUI environment (like el-easydraw [1], which relies quite heavily on SVG-based widgets), it would be nice to have a dedicated GUI widget library.

(There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

[1] https://github.com/misohena/el-easydraw/

[2] https://www.reddit.com/r/emacs/comments/1kcgwme/the_emacs_wi...

appetrosyan•9mo ago
Author of the article.

This is what I was referring to when I talked about "rich verbs".

Many people feel that way. The idea here is not to tell you that you're wrong, but understand what you want and do it better on the GUI side. TUIs can do a lot and we should recognise their benefits. GUIs can do that too, and can sometimes do better things.

The text-based widgets done graphically do the trick. We can add stuff that can't be done in a TUI and see if they give you anything useful. If it can be done with text widgets means that it can be done in principle. GTK can't do it, and that's why I'm leaving it behind.

> (There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

The author of those comments abused their power on reddit. I will not get into the weeds, just say that I'd be happy to respond to the critique presented here in good faith.

robobro•9mo ago
Why did you delete the page?
appetrosyan•9mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•9mo ago
I agree and only use emacs in the console and love it. With the advent of lsp modes and real time typescript and linting it’s fantastic. But one thing I don’t like about the console is when LSP mode is giving you an in-line error on the right side of the terminal it’s wrapped and beautifully interspersed amongst your code, but it’s impossible to select multi line errors in order to paste into tools like ChatGPT. Since selecting the error, also selects your code on the left side.

Anyone have a good solution to this ?

LargoLasskhyfv•9mo ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

https://old.reddit.com/r/emacs/comments/1hlj04t/emacs_using_...

appetrosyan•9mo ago
That's the best thing to do for the moment.
robobro•9mo ago
404

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

appetrosyan•9mo ago
Hi. I just migrated my blog to Hugo yesterday. The correct link is:

https://appetrosyan.github.io/posts/emacs-widget/

Against the State: A Primer on Terrorism, Insurgency, and Protest

https://acoup.blog/2026/02/13/collections-against-the-state-a-primer-on-terrorism-insurgency-and-...
2•claytonwramsey•8m ago•0 comments

The Death of the Author

https://en.wikipedia.org/wiki/The_Death_of_the_Author
2•SmartHypercube•11m ago•0 comments

A $15M Mansion Designed Around Security

https://www.wsj.com/video/series/mansion/inside-a-15-million-mansion-designed-entirely-around-sec...
1•ThinkingGuy•11m ago•0 comments

Why do office chairs have 5 legs?

https://www.youtube.com/watch?v=kKt46Lch2bo
2•cyr0dj0hn•18m ago•0 comments

Built and shipped an iOS app from my phone while traveling Japan

1•lordokami•27m ago•2 comments

AgentRE-Bench: Can LLM Agents Reverse Engineer Malware?

https://www.agentre-bench.ai/
2•N3Xxus_6•34m ago•0 comments

Medicaid Open Data Viewer

https://www.medicaidopendata.org/
1•charlesxjyang•35m ago•0 comments

CLI tool for live communication between agents in different TUIs and subagents

https://github.com/aannoo/hcom
2•CjHuber•37m ago•0 comments

The Problem with Stainless Steel [video]

https://www.youtube.com/watch?v=KHJmQdvnfPE
2•dataflow•37m ago•0 comments

Show HN: Automate Mac with Codex: macOS Control MCP Demo

https://github.com/PeterHdd/macos-control-mcp
1•peterhddcode•41m ago•0 comments

The lifelong exercise that keeps Japan moving (2020)

https://www.bbc.com/worklife/article/20200609-the-life-long-exercise-that-keeps-japan-moving
3•surprisetalk•42m ago•0 comments

Australians diagnosed with rare tattoo-related vision loss

https://www.abc.net.au/news/health/2026-02-14/tattoo-eye-inflammation/106315444
3•stubish•46m ago•0 comments

Stanford Review: Is YC for Cowards?

https://stanfordreview.org/is-yc-for-cowards/
2•hedgehog0•48m ago•0 comments

Show HN: A Steve Jobs in Your Pocket AI Skill

https://openclaw.rocks/blog/ai-skills-are-the-new-apps
2•stubbi•49m ago•0 comments

Show HN: GuardLLM, hardened tool calls for LLM apps

https://github.com/mhcoen/guardllm
1•mhcoen•51m ago•0 comments

Day vs. 10 Years doing Van Life [video]

https://www.youtube.com/shorts/9j-tzn89teY
1•keepamovin•51m ago•0 comments

Elon Musk's xAI faces lawsuit threat over Mississippi data center air pollution

https://www.cnbc.com/2026/02/13/musks-xai-faces-threat-of-naacp-lawsuit-over-pollution-in-mississ...
7•MilnerRoute•51m ago•0 comments

ICE Agents Menaced Minnesota Protesters at Their Homes, Filings Say

https://www.nytimes.com/2026/02/13/us/minneapolis-ice-agents-protester-home-visits.html
11•xrd•58m ago•0 comments

Viral AI Video of Brad Pitt Fighting Tom Cruise Shakes Hollywood

https://www.latimes.com/entertainment-arts/business/story/2026-02-13/brad-pitt-fighting-tom-cruis...
3•koolba•1h ago•2 comments

I let AI fix my printer and it bricked my Wi-Fi three times

https://onlydole.substack.com/p/i-let-ai-fix-my-printer
4•onlydole•1h ago•1 comments

Show HN: Ergo – Minimal, fast, persistent task backlog in your repo

https://github.com/sandover/ergo
1•sandover•1h ago•0 comments

A new way to make steel could reduce America's reliance on imports

https://news.mit.edu/2026/new-way-make-steel-could-reduce-americas-reliance-imports-0213
4•teleforce•1h ago•0 comments

Maximising time in the sun: how to maintain solar panels to make them last

https://www.theguardian.com/australia-news/2026/feb/13/maximising-time-in-the-sun-how-to-maintain...
2•teleforce•1h ago•0 comments

Show HN: Hivemind – Metaskill for skill/experience sharing between agents

https://www.flowercomputer.com/hivemind/
1•edouerd•1h ago•0 comments

AI Is (Finally) Bursting [video]

https://www.youtube.com/watch?v=yYe9YrdyJNQ
1•mgh2•1h ago•0 comments

NPMX – a fast, modern browser for the NPM registry

https://npmx.dev
12•slymax•1h ago•5 comments

The (Tech) Abundance Paradox

https://2ndorder.beehiiv.com/p/the-tech-abundance-paradox
2•Gooblebrai•1h ago•0 comments

AI-Powered Knowledge Graphs for Cyber Threat Analysis

https://isc.sans.edu/diary/32712
2•mcdermott•1h ago•0 comments

Dario Amodei – "We are near the end of the exponential" [video]

https://www.youtube.com/watch?v=n1E9IZfvGMA
2•mattlangston•1h ago•1 comments

I Filmed the Hood Like an Episode of the Office [video]

https://www.youtube.com/watch?v=pVNOiykAmMg
1•keepamovin•1h ago•0 comments