publicvoit,
@publicvoit@graz.social avatar

This small function is probably a game-changer in my personal experience:

From https://www.emacs.dyerdwelling.family/emacs/20240305160708-emacs--unified-interface-for-switching-contexts/ (he's not on the Fediverse as far as I know) I stole the code and created my-switch-to-thing() for switching to:

  • buffers
  • recent-files
  • bookmarks
  • slots
  • directories
    ... with one single command. 🤩

This replaces multiple "jump to"-commands in my setup.

You can find my adapted version in https://github.com/novoid/dot-emacs/blob/master/config.org

sping,

@publicvoit consult-buffer does this, with optional narrowing to sources and the ability to add custom sources. See https://github.com/minad/consult?tab=readme-ov-file#virtual-buffers

chke,
@chke@emacs.ch avatar

@sping @publicvoit I was a bit confused when I first read that article, because I thought consult-buffer can do all that and was even mentioned in the article. So now I think the author simply was unaware. Or am I still missing something?

publicvoit,
@publicvoit@graz.social avatar

@chke @sping I don't know buffer-consult and maybe the other author doesn't know as well.

However, this short piece of code I do understand and I was even possible to extend it for eyebrowse.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • GTA5RPClips
  • tester
  • JUstTest
  • modclub
  • cubers
  • ethstaker
  • mdbf
  • khanakhh
  • Durango
  • normalnudes
  • Leos
  • cisconetworking
  • anitta
  • provamag3
  • megavids
  • lostlight
  • All magazines