this post was submitted on 25 Nov 2023
1 points (100.0% liked)

Emacs

311 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I talked to someone about the extensibility of emacs, but the person I was speaking to assumed that any IDE is just as extensible by using Plug Ins.

Without turning the conversation into a university style lecture, what is one or two simple actions I can do in emacs to show someone what separates it from other IDES.

you are viewing a single comment's thread
view the rest of the comments
[–] ClerkOfCopmanhurst@alien.top 1 points 11 months ago (1 children)

It's the always-on REPL that's the kicker.

(defun invert-case ()
  (backward-delete-char-untabify 1)
  (insert (funcall (if (< last-command-event ?a)
		       #'downcase
		     #'upcase)
		   last-command-event)))

(add-hook 'post-self-insert-hook #'invert-case)

Then C-u C-M-x on invert-case to convey the larger point that emacs is always running within a gdb-like harness. Your buddy will immediately bristle at the prohibitive investment necessary to achieve this pointless and trivial hack, at which point he'll have truly grokked emacs.

[–] Asteridae@alien.top 1 points 11 months ago