diff options
author | Holger Dürer <me@hdurer.net> | 2017-05-05 22:19:02 +0100 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2017-05-15 09:38:29 -0400 |
commit | 53a1b5c2488b329a0857c94dad837ac164d2446e (patch) | |
tree | 0437f1c198c9216ef3c4a899b68a6d4465753381 /lisp/mastodon.el | |
parent | 4d0bd43c0ede0159c0f0130a5565ea5a6511997a (diff) |
Show users' avatars plus other image work.
- Shows users' avatars (makes only sense if Emacs is built with imagemagick)
- Scales media attachement previews to a max size (if Emacs is built with imagemagick)
- Enable cacheing of image fetches
Known issues:
- We should really cache the avatars to avoid having multiple identical images in memory.
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 947cc6a..0dd7f10 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -60,6 +60,16 @@ Use. e.g. \"%c\" for your locale's date and time format." :group 'mastodon :type 'string) +(defcustom mastodon-avatar-height 30 + "Height of the user avatar images (if shown)." + :group 'mastodon + :type 'integer) + +(defcustom mastodon-preview-max-height 250 + "Max height of any media attachment preview to be shown." + :group 'mastodon + :type 'integer) + (defvar mastodon-mode-map (make-sparse-keymap) "Keymap for `mastodon-mode'.") |