SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
junkbond@lemmy.ml to Emacs@lemmy.ml · 2 years ago

How to programmatically re-write your Elisp code with ‘el-search’ and ‘el-search-refactor’ (Or) How to De-‘dash’, De-‘s’ and De-‘f’ your Elisp Libraries

emacsnotes.wordpress.com

external-link
message-square
5
fedilink
11
external-link

How to programmatically re-write your Elisp code with ‘el-search’ and ‘el-search-refactor’ (Or) How to De-‘dash’, De-‘s’ and De-‘f’ your Elisp Libraries

emacsnotes.wordpress.com

junkbond@lemmy.ml to Emacs@lemmy.ml · 2 years ago
message-square
5
fedilink
A Challenge: De-‘dash’ and De-‘s’ an Elisp snippet Down below you see an Emacs Lisp code which uses dash, and s libraries. You are tasked with de-‘dash’-ing and de-‘s’-ing this code so that it no l…
alert-triangle
You must log in or register to comment.
  • donio@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    This looks neat but… does el-search-refactor actually exist? I am not able to find it anywhere.

    • junkbond@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      This looks neat but… does el-search-refactor actually exist? I am not able to find it anywhere.

      It is right there in the article. Here it is https://raw.githubusercontent.com/emacksnotes/emacsnotes.wordpress.com/master/el-search-refactor/el-search-refactor.el or https://github.com/emacksnotes/emacsnotes.wordpress.com/tree/master/el-search-refactor

      • donio@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Thanks, I see it now. I guess the use of that little link icon instead of the normal text anchor threw me.

  • Alex@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Is there an actual reason to de-magnar your libraries? The main reason I use them is they provide some concise approaches to common operations. I get that later emacs have introduced similar functions but I try and maintain support for as wide a range of emacs versions add possible.

    • Howard@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I guess it depends on whether you want to have less dependencies and support more Emacs versions, for the opposite.

      If I am supplying functions for others, I generally like to keep the dependencies low, just use standard libraries built into Emacs, so I think this could be helpful.

Emacs@lemmy.ml

emacs@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !emacs@lemmy.ml

Our infinitely powerful editor.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 29 users / week
  • 41 users / month
  • 339 users / 6 months
  • 61 local subscribers
  • 2.52K subscribers
  • 298 Posts
  • 553 Comments
  • Modlog
  • mods:
  • Berserkware@lemmy.ml
  • Zippoh@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org