Skip to content

Instantly share code, notes, and snippets.

@radixm46
Created July 7, 2024 03:16
Show Gist options
  • Save radixm46/8ced36ede23475f8d3754b6b7ad70f2e to your computer and use it in GitHub Desktop.
Save radixm46/8ced36ede23475f8d3754b6b7ad70f2e to your computer and use it in GitHub Desktop.
(leaf mastodon
:preface
(leaf emojify
:ensure t
:custom `((emojify-emojis-dir . ,(cache-sub-dir "emojify"))))
:ensure t
:custom
(mastodon-instance-url . "https://mstdn.example.com")
(mastodon-active-user . "user-name")
(mastodon-media--enable-image-caching . t)
:init (when (fboundp 'evil-lion-mode) (evil-lion-mode nil))
:config
(evil-define-key 'normal mastodon-mode-map
(kbd "n") 'mastodon-toot
(kbd "e") 'mastodon-toot--edit-toot-at-point
(kbd "r") 'mastodon-toot--reply
;; 移動まわり
(kbd "U") 'mastodon-tl--update
(kbd "j") 'mastodon-tl--goto-next-item
(kbd "k") 'mastodon-tl--goto-prev-item
;; tootリアクション
(kbd "l") 'mastodon-toot--toggle-favourite
(kbd "b") 'mastodon-toot--toggle-boost
(kbd "B") 'mastodon-toot--toggle-bookmark
(kbd "s") 'mastodon-tl--toggle-spoiler-text-in-toot
(kbd "S") 'mastodon-tl--toggle-spoiler-in-thread
;; 主なタブ移動
(kbd "g r") 'mastodon-tl--update
(kbd "g h") 'mastodon-tl--get-home-timeline
(kbd "g l") 'mastodon-tl--get-local-timeline
(kbd "g n") 'mastodon-notifications-get
;; exit
(kbd "Q Q") 'mastodon-kill-all-buffers
(kbd "Q q") 'mastodon-kill-window
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment