Gnus tips for Lantern
In case you are trying out my NNTP-based blog engine [Lantern](https://koldfront.dk/git/lantern/about/) 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!


