From 733ce6a8bae9f0622432b33b138f532b71688e80 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Sun, 23 Apr 2017 12:20:01 -0400 Subject: Close #56 with emojify auto-detection hook --- lisp/mastodon.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 8bd29e0..7a2de06 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -92,6 +92,11 @@ (progn (mastodon--store-client-id-and-secret))) +;;;###autoload +(add-hook 'mastodon-mode-hook (lambda () + (when (require 'emojify nil :noerror) + (emojify-mode t)))) + (define-derived-mode mastodon-mode nil "Mastodon" "Major mode for Mastodon, the federated microblogging network." :group 'mastodon -- cgit v1.2.3