Live data from Hacker News

Emacs 31 is around the corner: The changes I'm daily driving

rahuljuliato.com

271–280 of 294 posts

Re: Emacs 31 is around the corner: The changes I'm daily driving

#271
post #153
post #75

"Is anyone still using emacs?" Yes, 34 years and no plans to switch. Emacs cursor movement keystrokes are quite widely supported elsewhere too which use GNU readline or implement at least subset themselves. Those work well also besides shells with Chromium/Chrome/Safari etc. many browsers input fields (address bar and text area). Cisco IOS, Juniper Junos, Netscreen load balancers too etc. IMHO makes jumping around CL…

I'm curious... why are people (this thread, but there are several independent others) replying to "Is anyone still using emacs?" ? I don't see that sentence anywhere in the article!

I believe it's a response to something posted recently, but I don't know what.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#272

Earlier quoted context omitted.

How do you use it in relation to claude?

Agent-shell.el for the CLI experience that's integrated with emacs. You can send things from emacs to your Claude code prompt and it will include the file and line numbers. There's also claude-code-ide.el that gives you more of a cursor like experience with autocomplete, simple chat, etc.

claude-code-ide runs the claude TUI inside a term inside emacs with a little bit of editor integration on top. It's closer to the standard CLI experience than agent-shell is.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#273
post #4

"Is anyone still using emacs?" Yes. I had to briefly visit the world of VSCode during a period of time when it had better AI integration than emacs did, but since I got Claude working well inside of emacs I've returned to 100% emacs. There just isn't anything like the old editors, built in the 80x24 terminal era, for getting huge swathes of code on your screen at once. I run a standard widescreen monitor with three v…

> Now I am more excited about the major releases; for instance term issues are an issue for me with the aforementioned Claude integration. Not enough to stop me, but annoying. Being a co-maintainer, I'm a bit biased, but I think you should try Ghostel ( https://github.com/dakra/ghostel ) if you aren't already. And if you are, you should report bugs so we can fix them :)

I love ghostel. Thanks for making it.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#274

Earlier quoted context omitted.

I use Lem. It's an "emacs" but not a clone of GNU Emacs. It's written in Common Lisp, extensible in Common Lisp and it's way more performant than GNU Emacs. Obviously less features and plugins but for my needs (writing Lisp code mostly) it's great.

How is it now compared to 6 months ago? I tried it back then, and just... I don't know, couldn't get into it.

Dunno, I've been trying it off and on since it was first released in like 2018. I don't theres any particularly noticeable changes from 6 months ago specifically.

I also used Emacs way back in the day but have been Vim/Neovim for the last 5 years or so. But I recently started a new Lisp project so revisited Lem, actually set it up the way I want (with LazyVim-like bindings), and found with my changes and comfort hacking on it (it's all Common Lisp top to bottom so it's easy to change) that it can replace LazyVim for me now. Just using the ncurses front end BTW.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#275
post #239

Earlier quoted context omitted.

> Org timestamps infamously do not support them. So? Emacs has built-in solar and lunar calendars, has world-clock command, format-time-string accepts ZONE argument. Why don't you build a minor mode that calculates the offsets and shows you stuff in different timezones? This can be done in less than 15 minutes. With AI maybe in 20. You're not dealing with an app you paid for, and your complaint not even an accurate o…

Oh, you can't imagine how I'd like to be proven wrong. Last time I checked, proper timezone support wasn't there. One could specify single timezone for entire org engine, but not per timestamp. I found some nearly official mailing list thread where participants couldn't settle on a single solution, and so the conclusion was that proper TZ is not coming to org. > Org's timestamp format doesn't encode timezone by defau…

So the problem is two-fold, right?

a) you need to see the timestamp in different timezone(s)

A minor mode with home-zone/visiting-zone vars showing dual times via overlays answers: e.g. "It's 1PM here, what's that in London?" That's the world-clock problem. Useful, easy to solve in ~15 min.

b) anchor an event to a foreign zone permanently - you want to record a fact about an event that is intrinsically tied to a zone

For that, yes, you'd have to either change a bunch of things about Org-mode - every consumer of timestamps (agenda, clock, deadlines, repeaters) would need to become zone-aware.

Pragmatically, you can store the zone without rewriting Org, by piggybacking on a property/tag and a conversion step.

1. Author in foreign zone, but store normalized to one canonical zone (e.g. UTC) in the timestamp, and keep the original zone in a property:

     * Meeting
     :PROPERTIES:
     :TZ: Europe/London
     :END:
         ; UTC
2. A small minor mode renders the display via overlay in either the stored :TZ: or your current zone, computed with `format-time-string … zone`.

The limitation is that all the timestamps within a single heading can only be of a single timezone.

---

There's yet another alternative - you can codify the TZ on each timestamp as a propertized text. The problem? Text properties don't get persisted, so you'd have to add custom logic that mangles the timestamps in the file on save (essentially breaking them for all dowstream consumers), and then restores them to normal shape with propertized timezone info. I guess this begets another problem - many Org operations reconstruct the timestamp string from a parsed org-element struct.

I guess, I do stand corrected - if the problem you want to solve is "b" - there isn't a straightforward solution to it.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#276

Earlier quoted context omitted.

> "Is anyone still using emacs?" Nothing else is capable of handling the variety of text-related things I want from my text editor. - I consume HN and Reddit in Emacs. Allows me for example to quickly search through all the links shared in a thread. - I read Jira and Slack in Emacs - in org-mode. It is far better for finding relevant things, extract them for my notes, etc. - All my writing done in Emacs. Because I ha…

> - I consume HN and Reddit in Emacs. What are you using for Reddit now that they have closed access to their API?

I'm currently using my custom fork of thanhvg/emacs-reddigg. It isn't ideal, I've been itching to rebuild it into something more robust. Well, one day I may get annoyed enough and just do it.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#277
post #265

Earlier quoted context omitted.

> "Is anyone still using emacs?" Nothing else is capable of handling the variety of text-related things I want from my text editor. - I consume HN and Reddit in Emacs. Allows me for example to quickly search through all the links shared in a thread. - I read Jira and Slack in Emacs - in org-mode. It is far better for finding relevant things, extract them for my notes, etc. - All my writing done in Emacs. Because I ha…

I wish I could reach this level! maybe one day... except in neovim ;p

I use Neovim too, but it never can fully replace Emacs for me. https://news.ycombinator.com/item?id=48589770

Re: Emacs 31 is around the corner: The changes I'm daily driving

#278
post #239

Earlier quoted context omitted.

Oh, you can't imagine how I'd like to be proven wrong. Last time I checked, proper timezone support wasn't there. One could specify single timezone for entire org engine, but not per timestamp. I found some nearly official mailing list thread where participants couldn't settle on a single solution, and so the conclusion was that proper TZ is not coming to org. > Org's timestamp format doesn't encode timezone by defau…

So the problem is two-fold, right? a) you need to see the timestamp in different timezone(s) A minor mode with home-zone/visiting-zone vars showing dual times via overlays answers: e.g. "It's 1PM here, what's that in London?" That's the world-clock problem. Useful, easy to solve in ~15 min. b) anchor an event to a foreign zone permanently - you want to record a fact about an event that is intrinsically tied to a zone…

Aren't Org mode dates ISO 8601? ISO 8601 has an optional timezone, is that not supported in Org mode? You could then use format-time-string to configure how it is displayed.

Another possible solution. Often - but not always - a datetime and timezone pair can alternatively be represented as a UNIX timestamp. Depending on the use case there are tons of ways to manipulate UNIX timestamps, and Org mode might support that naively (I'm not sure, try it).

Re: Emacs 31 is around the corner: The changes I'm daily driving

#279
post #197

Earlier quoted context omitted.

Almost all my vimming is in Emacs now. I started with Org mode - now I can't find any feature of any TODO application that Org mode doesn't do better.

Functional and comfortable syncing with your mobile?

I suppose that you mean via some third party cloud. I personally sync my Org mode notes via adb when I backup the phone occasionally. I read on the phone using Orgro.

You might be able to sync with Dropbox.

Re: Emacs 31 is around the corner: The changes I'm daily driving

#280
post #148

Earlier quoted context omitted.

It's GNU Readline[0] or similar. It's all over the place, on Linux at least. Being GNU it defaults to emacs, but the vi support is also excellent. The first thing I type in any foreign bash is 'set -o vi'. [0] - https://en.wikipedia.org/wiki/GNU_Readline

Yes it's GNU readline, but note that the very Wikipedia link you gave explains that it's GNU readline that re-used those shortcuts from Emacs, not the other way round. So it's not wrong to call these "Emacs" shortcuts.

Well, it is called `set -o emacs` in all shells of note (except POSIX; even pdksh).
Post reply on HN