koldfront

Gnus tips for Lantern #lantern #gnus #nntp

🕢︎ - 2026-04-18 - ♺ 2

Gnus logoIn case you are trying out my NNTP-based blog engine Lantern with Gnus, here are some useful parameters to set on your Lantern topic/groups:

((message-syntax-checks
  '((long-lines . disabled) (quoting-style . disabled)))
 (posting-style (eval (auto-fill-mode -1)))
 (message-shoot-gnksa-feet '(cancel-messages canlock-verify)))

I also have a hook to change the Content-Type: to text/markdown in the Lantern groups when writing:

(defun asjo-lantern-markdown-hook ()
  "Insert default Content-Type in lantern groups"
  (let ((group (or gnus-newsgroup-name "")))
    (when (string-match "nntp.inav:lantern" group) ; Adjust this!
      (message-add-header "Content-Type: text/markdown"))))

(add-hook 'message-setup-hook 'asjo-lantern-markdown-hook)

Another thing that makes it work a little smoother is switching to markdown-mode when the Content-Type of an article is text/markdown, so adding this to your ~/.gnus:

; Display text/markdown:
(require 'markdown-mode)
(defun mm-display-markdown (handle)
  (mm-display-inline-fontify handle 'markdown-mode))
(add-to-list 'mm-inline-media-tests '("text/markdown" mm-display-markdown identity))

Have fun!

@blog Not sure I will ever use this, but it's fascinating. Congrats!

- roughnecks 🕤︎ - 2026-04-18

+=

Oh, for the parameters to actually work, I have these lines in my ~/.gnus as well:

; Make it possible to not check subject and not auto-fill via Topic/Group parameters:
(add-to-list 'gnus-newsgroup-variables 'message-syntax-checks)
(add-to-list 'gnus-newsgroup-variables 'message-fill-column)

Oops.

- Adam Sjøgren 🕧︎ - 2026-04-19

+=

Add comment

How to comment, in excruciating detail…

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

  • Configure a newsreader¹ to connect to the server koldfront.dk on port 1119 using nntps (nntp over TLS).
  • Open the newsgroup called lantern.koldfront and post a follow up to the article.
¹ Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form:

+=