The search for middleware between emacs and Lemmy was a dead end. So the next question is naturally:

Does anyone else use emacs to compose Lemmy posts, before copy-pasting them into a lemmy client?

I work offline, so of course I use emacs for this. But I wonder if I am alone.

So far I’ve only used org mode with a single file. Each post starts with an asterisk, then I put this at the top of the file to start in the collapsed state:

#+startup: hideblocks
#+startup: fold
~disable~ #+STARTUP: showall

The competing workflow would be to have each post in its own file with an .md extension to get markdown mode. But markdown mode is not using the same markdown as Lemmy. And it would be tedious to deal with many separate files.

problems with markdown mode:

  • many files to manage
  • markdown language differences
  • paraphaphs must be unwrapped before copying to the buffer

problems with org mode:

  • no syntax highlighting for markdown
  • paraphaphs must be unwrapped before copying to the buffer

Am I missing anything?

Any tips for coping with this? I know there is an add-on somewhere that will fill and unfill paragraphs as a toggle, but that would still be tedious if it’s one paragraph at a time.

  • evenwicht@lemmy.sdf.orgOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    5 months ago

    Glad to hear about that! The page was unreachable (at least from Tor) but this works: http://web.archive.org/web/20250317184645/https://codeberg.org/martianh/lem.el

    I get the impression from the readme that it requires an Internet connection to use. I might still be able to use it in some ways but I’ll try to compose msgs while offline and save a local copy.

    (update) I get this when trying to install:

    package-compute-transaction: Package ‘emacs-29.1is unavailable
    

    28.2 is the latest on debian stable. Is that my problem?

    • blawsybogsy@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 months ago

      it does require an internet connection yes. It doesn’t have much in the way of offline functionality (it just interacts directly with the API). I’m not sure if Codeberg allows Tor access.

      I looked into the dependencies just now. I thought I maybe only used a few 29 functions, but actually I heavily use vtable, which is 29 too. Maybe look in to getting Emacs from Debian backports, or even building it yourself (I do so, and I’m not at all an experienced source-builder person: it’s quite easy, and also common.)