Skip to content
Display tweet text inline in erc-buffers
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Show inlined tweets in erc buffers.


(require 'erc-tweet)
(add-to-list 'erc-modules 'tweet)

Or (require 'erc-tweet) and M-x customize-option erc-modules RET

This plugin subscribes to hooks erc-insert-modify-hook and erc-send-modify-hook to download and show tweets.


The variable `erc-tweet-cleanup-text' lets you tune the way the tweet text will be displayed.

Here's an example from leathekd.

(defun erc-tweet-w3m-cleanup-text (tweet-text)
  (if (featurep 'w3m)
        (insert tweet-text)
        (w3m-region (point-min) (point-max) nil 'utf8)
        (concat (replace-regexp-in-string
                 "\n" ""
                  (point-min) (point-max)))
    (erc-strip-tags tweet-text)))
(setq erc-tweet-cleanup-text 'erc-tweet-w3m-cleanup-text)
You can’t perform that action at this time.