diff options
author | mousebot <mousebot@riseup.net> | 2022-03-13 17:34:30 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-03-13 17:34:30 +0100 |
commit | 12153c2f8d6976b15bba9bd6c51e9ebf655a937d (patch) | |
tree | 84ad01447b8cbc3a6f47d3bcc11af560b74bf2f1 | |
parent | f0f77a42fbd1b74fc0936dd1895812a4bc23d617 (diff) |
autoload and binding for translate-toot-text
-rw-r--r-- | lisp/mastodon.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 6eddd3d..30fc2d3 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -88,6 +88,9 @@ (autoload 'mastoton-tl--view-filters "mastodon-tl") ;; (autoload 'mastodon-toot--bookmark-toot-toggle "mastodon-toot") +(when (require 'lingva nil :no-error) + (autoload 'mastodon-toot--translate-toot-text "mastodon-toot")) + (defgroup mastodon nil "Interface with Mastodon." :prefix "mastodon-" @@ -167,6 +170,8 @@ Use. e.g. \"%c\" for your locale's date and time format." (define-key map (kbd "K") #'mastodon-profile--view-bookmarks) (define-key map (kbd "I") #'mastodon-tl--view-filters) (define-key map (kbd "G") #'mastodon-tl--get-follow-suggestions) + (when (require 'lingva nil :no-error) + (define-key map (kbd "s") #'mastodon-toot--translate-toot-text)) map) "Keymap for `mastodon-mode'.") |