this post was submitted on 15 Apr 2023
1 points (100.0% liked)

Planet Emacs: Emacs News, Packages, Articles, Videos & more

155 readers
1 users here now

Emacs News, Packages, Articles, Videos, Events & more

This is a sister community of

  1. /c/emacs
  2. /c/orgmode
  3. /c/spacemacs
  4. /c/doomemacs

founded 3 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/956286

James Dyer has a useful short post on indexing his init.el file. His scheme is simple. His init.el is broken into sections each of which starts with:

;;
;; -> Section-name
;;

Then he used occur to generate the actual index. Rather than call occur each time with the need to provide the regex, he wrote a 4-line function that does it for him. He doesn’t say whether he bound it to a key sequence but that, of course, is trivial.

...

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here