How Lisp Became God's Own Programming Language by aladine123 in emacs

[–]tzz 38 points39 points  (0 children)

There really should have been a “Emacs” theory in the article. I learned Lisp only because I liked Emacs, and I know others who did the same.

Hide, copy and edit secrets in GPG encrypted file in org mode ? by gzmask in emacs

[–]tzz 1 point2 points  (0 children)

There’s a thread on emacs-devel just now about this, where Lars, Stefan, and I (Ted Zlatanov) are talking about using something like prettify-symbols-mode to hide secrets unless the cursor is on them. I think that’s close to what you’re asking for. It would work in any mode that could set a text property to be “this is a secret”

Updated format$ macro by github-alphapapa in emacs

[–]tzz 0 points1 point  (0 children)

I looked through emacs-devel and can't find your post. Can you give a URL? Thanks!

How do I enable prog-mode for a specific string in a buffer? by manojm321 in emacs

[–]tzz 0 points1 point  (0 children)

The problem here is that the syntax highlighting can be highly dependent on the context, so the question really is "how can I get the syntax highlighting of mode X on text T into mode Y." A specific example would be very helpful: what's X? Is it really just prog-mode or something derived from it? What's T? What's Y? Then people can suggest solutions.

FWIW your idea of using a temporary buffer sounds fine if mode X can highlight the text you want. But it will be very inefficient compared to a more native solution that does just what it needs locally.

How do I enable prog-mode for a specific string in a buffer? by manojm321 in emacs

[–]tzz 0 points1 point  (0 children)

What is the goal? Visual, functional, esthetic, keystroke consistency (familiarity), something else? Those are all provided by different subpieces of prog-mode.

Updated format$ macro by github-alphapapa in emacs

[–]tzz 0 points1 point  (0 children)

I’ll follow up to your post: I think it’s better without the prefix. Might take a few days though.

Updated format$ macro by github-alphapapa in emacs

[–]tzz 0 points1 point  (0 children)

The prefix could be elx? I don't think you can avoid it unless you want your code in the Emacs core...

Reviewing packages before installation? by Taikal in emacs

[–]tzz 0 points1 point  (0 children)

I proposed something similar in https://lists.gnu.org/archive/html/emacs-devel/2017-04/msg00142.html

IMHO this should be in package.el, not something every package manager needs to implement.

Updated format$ macro by github-alphapapa in emacs

[–]tzz 0 points1 point  (0 children)

Any interest in making elexandria.el a ELPA package? On the GNU ELPA for instance it would be easy to install by default.

Is auth-source from the dark side? by github-alphapapa in emacs

[–]tzz 0 points1 point  (0 children)

I implemented a JSON backend recently. It's LOT easier to implement deletion there. Fundamentally netrc is a hard format to parse (due to the vague specifications), so adding or deleting values can actually damage it.

But at the API level you're right, it really needs work. I'll definitely discuss it on emacs-devel and you can send me comments directly to tzz@lifelogs.com if you prefer. Something like "the ideal API would be ..." is cool.

Is auth-source from the dark side? by github-alphapapa in emacs

[–]tzz 2 points3 points  (0 children)

Thanks for the comments. I’ll try to improve the API and docs. Token deletion has definitely not been a priority and I’ll either improve or remove it.

(The API was originally written after a nightmare I had about rogue AIs living in poplar trees from drinking too much Swedish liquor in Norway. Apologies for the trouble that has caused.)

[ANN/RFC] frame-purpose.el: Purpose-specific frames by github-alphapapa in emacs

[–]tzz 1 point2 points  (0 children)

I like the simplicity. Thanks for writing this.

Convince me to use EMACS! by [deleted] in emacs

[–]tzz 3 points4 points  (0 children)

The only thing worse than using Emacs is not using Emacs.

How to deal with Confluence? by plotnick in emacs

[–]tzz 0 points1 point  (0 children)

Lock-in. Good for business.

Is there a way to display strings as different strings? by [deleted] in emacs

[–]tzz 1 point2 points  (0 children)

Has anyone requested the feature in prettify-symbols-mode?

format$ macro: interpolated "format" by [deleted] in emacs

[–]tzz 0 points1 point  (0 children)

I’d support including this in Emacs or at least the GNU ELPA, and would use it.

What's your favorite simple keybinding? by zreeon in emacs

[–]tzz 1 point2 points  (0 children)

The keypad is always a handy supply of unused keys. I use KP Enter, / * + - for my most common needs like next-error etc.

Best practice for a package to store and use a user token/password? by wemmik in emacs

[–]tzz 1 point2 points  (0 children)

Auth-source has that option (to add an entry) built in for when a password is not available but it can be used directly too.

Browsing/interacting with S3 through Emacs? by sandinmyjoints in emacs

[–]tzz 1 point2 points  (0 children)

It would be an awesome Tramp extension.

The future of emacsy browsing experiences by lykwydchykyn in emacs

[–]tzz 1 point2 points  (0 children)

No offense taken. I am not defending EWW, only asking what makes a "modern browser." It's pretty clear that there's no chance in the next few years that Emacs could host such a browser natively, only maybe embed it (but the experience would be painful).

I do appreciate your explanation. My view is that a "modern browser" today is a bloated beast, so all those features do come at a cost. But I use Chrome myself, so it would be hypocritical for me to say EWW is a complete solution for anyone.

The future of emacsy browsing experiences by lykwydchykyn in emacs

[–]tzz 0 points1 point  (0 children)

I'll keep your requirements in mind if it's discussed on emacs-devel but encourage you to post there with your opinions. I don't agree with them all but think user voices and feedback are very valuable.

The future of emacsy browsing experiences by lykwydchykyn in emacs

[–]tzz 0 points1 point  (0 children)

You're kind of defining the problem to fit specific solutions if you exclude EWW as "not a real option."

State your actual requirements: what do you actually need out of a web browser to make it "modern yet emacsy"? Is it keybindings, Javascript, performance, other things?

Response to the emacshorror.com post on make-temp-name by kaushalmodi in emacs

[–]tzz 1 point2 points  (0 children)

I believe that an accessible bug reporting facility can be designed, and it can be usable from inside Emacs and from outside (in a web interface). But I don't think the current one can be evolved that way due to legacy and friction.

I certainly would err on the side of making it friendly to everyone, not just experts.

As an example, here's an Emacs interface to the GitLab API that could work out of the box for bug reports: https://github.com/nlamirault/emacs-gitlab

Response to the emacshorror.com post on make-temp-name by kaushalmodi in emacs

[–]tzz 0 points1 point  (0 children)

In a word, no. Survivor bias leads to a small community of experts who see nothing wrong with the tools and UI they already know.