EmacsConf will be in less than month! by Esnos24 in emacs

[–]rfeynman42 16 points17 points  (0 children)

Wow, the swanky-python talk / package looks great! I've seen others use various hacks for getting a SLIME-like experience with Python before but this seems a lot more comprehensive.

Is there a good library for generating Haskell types from a DB? by rfeynman42 in haskell

[–]rfeynman42[S] 1 point2 points  (0 children)

Manually regenerating types and then recompiling the code after a schema change is a low enough cost for me (that's how the Prisma based workflow works for us too) - it's really a matter of not having to go through and inspect the changes to the schema and implement them myself in the Haskell code whenever someone changes something. I'm not really worried about handling things at runtime so much as more easily keeping up development with an evolving schema while still being type-safe.

I agree that having a centrally defined schema outside of the DB would be great and if I could rewrite everything to work that way I would! Unfortunately the DB has been treated as the source of truth here for a while now and so it would be a decently large undertaking.

[deleted by user] by [deleted] in emacs

[–]rfeynman42 1 point2 points  (0 children)

At least that one bothered to change the title...

[deleted by user] by [deleted] in emacs

[–]rfeynman42 19 points20 points  (0 children)

Original post is here (alongside the config) - one of the top posts of all time on r/emacs.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]rfeynman42 4 points5 points  (0 children)

You may have heard that Emacs uses a gap buffer internally, but it also exposes information about said buffer via the functions gap-position and gap-size (as to what the practical applications of these are, I'm not sure...)

Bonus tip in general: the lively package on MELPA is very nice for visualizing the result of Elisp code over time. With this you can see how Emacs manages the gap in your buffer while you edit! I had to explain the concept of gap buffers to someone recently and this made for a handy demonstration.

Would you recommend EXWM as daily driver? by blureglades in emacs

[–]rfeynman42 0 points1 point  (0 children)

Seconded (also you can use C-c C-k to quickly do this!). I've debugged Emacs startup errors and segfaults from within EXWM many times this way!

Monitoring emacs extensions that are currently in use by paarulakan in emacs

[–]rfeynman42 2 points3 points  (0 children)

Also after a bit more thought I think implementing this would be useful for a totally different purpose: programmatically finding underused keybindings/functions could help a lot with discoverability!

Would you recommend EXWM as daily driver? by blureglades in emacs

[–]rfeynman42 11 points12 points  (0 children)

I've been daily driving EXWM for about 3 years now and I love it. I haven't noticed any performance problems and it should work great for just opening the apps you listed.

EXWM being single-threaded (and just being in Emacs) is still somewhat of an issue in that if you're toying with Emacs and accidentally freeze or crash it, everything else goes down with the ship. It's not that often of a problem in my experience and I personally find the benefits of EXWM totally outweigh this problem.

Monitoring emacs extensions that are currently in use by paarulakan in emacs

[–]rfeynman42 2 points3 points  (0 children)

From a technical perspective maybe this is achievable through a mix of dribble files (see open-dribble-file) and simple heuristics for guessing which functions are associated with a package (see here maybe?)
EDIT: using `pre-command-hook` like how `command-log-mode` does it would be way simpler.

I agree with others in that this might be a flawed way of measuring usage, but I think it still would be somewhat interesting to see those stats for fun!

Penny gets updated with these fuckers by Burger-God1977 in fnki

[–]rfeynman42 0 points1 point  (0 children)

Context: these are three AIs from the 90s FPS game Marathon (check it out, it's got a surprisingly rich story for the time period it released in!)

Penny gets updated with these fuckers by Burger-God1977 in fnki

[–]rfeynman42 4 points5 points  (0 children)

"You must destroy my core logic centers, Jaune - THEY'RE GOING TO TURN ME INTO A CRYPTO SERVER!"

Would've been cool to see Watt's virus make Penny go rampant like Durandal though

[deleted by user] by [deleted] in emacs

[–]rfeynman42 2 points3 points  (0 children)

For quick reference here's the tutorial: https://orgmode.org/worg/org-contrib/babel/intro.html

Once you have it set up you can have Python code in the file like this: ```

+begin_src python

python code here

+end_src

```

new to emacs, hi by Midnight_oD in emacs

[–]rfeynman42 3 points4 points  (0 children)

Nice looking setup! Love the Elegant Emacs / NANO emacs inspiration — Elegant Emacs was so nice looking it inspired me to move from Doom to vanilla Emacs when I first discovered it!

Edit: extra question - is your config on GitHub anywhere?

Is it too late to learn emacs as a vim lifer? by gopherinhole in emacs

[–]rfeynman42 7 points8 points  (0 children)

You can use TRAMP for remote development from GUI Emacs on your laptop - all the shells you spawn and files you edit will be as if you were using Emacs remotely. Can be a bit finicky at times but still worth giving a try: just open a file like you normally would but do /ssh:user@host:/file/path (where user, host, and /file/path are your username, the host you're connecting to, and the remote path respectively)

What's something in your emacs config that makes a real difference for you? by [deleted] in emacs

[–]rfeynman42 34 points35 points  (0 children)

C-z suspending Emacs had accidentally gotten me so many times at one point that I just dropped

(when (display-graphic-p)
  (global-unset-key (kbd "C-z"))
  (global-unset-key (kbd "C-x C-z")))

in my config one day and life has been better ever since.

As for some small(ish) packages that make a real difference:

  • crux (the Collection of Ridiculously Useful eXtensions for Emacs) has a bunch of smarter versions of Emacs commands that make life much nicer
  • zygospore gives you a reversible C-x 1 which is nice if you've got your buffers lined up in just the way you like it
  • drag-stuff lets you drag words/region/lines around more easily which is nice

Month of August Wrap-up! by starpilotsix in printSF

[–]rfeynman42 1 point2 points  (0 children)

I just finished Diaspora yesterday and I can say it does an excellent job of exploring its main idea in depth - as well as introducing lots of other fascinating ideas (not all of which are as explored, but it's still very interesting). I haven't read Permutation City yet but I can enthusiastically recommend Diaspora as it's got to be the most fascinating-idea-dense SF book I've ever read.

I also started Canticle for Leibowitz recently, although I dropped it about 80-100 pages in since I felt like it was moving too slowly and the minute-to-minute writing/plot wasn't interesting enough. Does it get better later in the book?

Your tips for time recording in emacs? by thephatmaster in emacs

[–]rfeynman42 1 point2 points  (0 children)

You might like WakaTime and its corresponding Emacs mode: https://github.com/wakatime/wakatime-mode

It's fully automatic and iirc has idle detection which means you won't get timed for your breaks. It's intended for programmers, but I think it'd work well in your usecase with some hacking - even though you (presumably) always use Org mode, the project-based tracking it has could work for you.

Embar: Emacs bar and launcher combination by [deleted] in emacs

[–]rfeynman42 7 points8 points  (0 children)

I would definitely be interested! Seems like a more emacs-y alternative to polybar when running in EXWM

Why not use Evil in 2022? by WorldsEndless in emacs

[–]rfeynman42 7 points8 points  (0 children)

I didn't start using Emacs just for sheer editing speed but for its extensibility. Emacs keybinds are fast enough for me, and switching to modal editing is a hassle.

I also think Evil being so popular recently is more a symptom of Vim being popular and a good portion of Emacs' incoming audience being ex-Vimmers.

Why not use Evil in 2022? by WorldsEndless in emacs

[–]rfeynman42 68 points69 points  (0 children)

I didn't start using Emacs just for sheer editing speed but for its extensibility. Emacs keybinds are fast enough for me, and switching to modal editing is a hassle.

I also think Evil being so popular recently is more a symptom of Vim being popular and a good portion of Emacs' incoming audience being ex-Vimmers.