this post was submitted on 15 Jul 2025
9 points (100.0% liked)

Emacs

464 readers
1 users here now

The Emacs editor, elisp development, and life as a lisp VM user.

founded 2 years ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] blawsybogsy@lemmy.ml 5 points 8 months ago (1 children)

(my old) emacs lemmy client: https://codeberg.org/martianh/lem.el.

it works? i'm using it to post this...

[–] evenwicht@lemmy.sdf.org 2 points 8 months ago* (last edited 8 months ago) (1 children)

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.1’ is unavailable

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

[–] blawsybogsy@lemmy.ml 3 points 8 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.)