This commit is contained in:
SouthFox 2023-01-23 15:19:21 +08:00
parent 9952066f1c
commit 536228c691
4 changed files with 28 additions and 7 deletions

0
.gitignore vendored Normal file → Executable file
View file

View file

@ -176,6 +176,10 @@
:desc "dap breakpoint log message" "l" #'dap-breakpoint-log-message) :desc "dap breakpoint log message" "l" #'dap-breakpoint-log-message)
;; mastodon ;; mastodon
(map! :leader
:prefix ("o")
:desc "Mastodon" "M" #'mastodon)
(map! :after mastodon (map! :after mastodon
:map mastodon-mode-map :map mastodon-mode-map
:n "[ [" #'mastodon-tl--goto-prev-toot :n "[ [" #'mastodon-tl--goto-prev-toot
@ -191,16 +195,18 @@
:n "A" #'mastodon-profile--get-toot-author :n "A" #'mastodon-profile--get-toot-author
:n "F" #'mastodon-tl--get-federated-timeline :n "F" #'mastodon-tl--get-federated-timeline
:n "H" #'mastodon-tl--get-home-timeline :n "H" #'mastodon-tl--get-home-timeline
:n "l" #'mastodon-tl--view-list-timeline
:n "L" #'mastodon-tl--get-local-timeline :n "L" #'mastodon-tl--get-local-timeline
:n "N" #'mastodon-notifications-get :n "N" #'mastodon-notifications-get
:n "O" #'mastodon-profile--my-profile
:n "P" #'mastodon-profile--show-user :n "P" #'mastodon-profile--show-user
:n "T" #'mastodon-tl--thread :n "T" #'mastodon-tl--thread
;;; toot actions ;;; toot actions
:n "b" #'mastodon-toot--bookmark-toot-toggle :n "K" #'mastodon-toot--bookmark-toot-toggle
:n "B" #'mastodon-toot--toggle-boost :n "R" #'mastodon-toot--toggle-boost
:n "c" #'mastodon-tl--toggle-spoiler-text-in-toot :n "c" #'mastodon-tl--toggle-spoiler-text-in-toot
:n "C" #'mastodon-toot--copy-toot-url
:n "o" #'mastodon-url-lookup
:n "d" #'mastodon-toot--delete-toot :n "d" #'mastodon-toot--delete-toot
:n "D" #'mastodon-toot--delete-draft-toot :n "D" #'mastodon-toot--delete-draft-toot
:n "f" #'mastodon-toot--toggle-favourite :n "f" #'mastodon-toot--toggle-favourite
@ -215,6 +221,7 @@
:n "S" #'mastodon-search--search-query :n "S" #'mastodon-search--search-query
:n "V F" #'mastodon-profile--view-favourites :n "V F" #'mastodon-profile--view-favourites
:n "V B" #'mastodon-profile--view-bookmarks :n "V B" #'mastodon-profile--view-bookmarks
:n "V L" #'mastodon-tl--view-list-timeline
) )
;; mail ;; mail
@ -488,3 +495,15 @@ Additionally, QUERY can be chosen as well."
:leader :leader
:prefix "n" :prefix "n"
:desc "Org Transclusion Mode" "t" #'org-transclusion-mode)) :desc "Org Transclusion Mode" "t" #'org-transclusion-mode))
;; ement
(setq ement-save-sessions t
ement-room-message-format-spec "%B%r%R%t")
(map! :map ement-room-mode-map
:n "c e" #'ement-room-edit-message
:n "c m" #'ement-room-send-message
:n "c r" #'ement-room-send-reaction
:n "c i" #'ement-room-send-image
:n "c f" #'ement-room-send-file
:n "q" #'kill-current-buffer
)

2
init.el Normal file → Executable file
View file

@ -166,7 +166,7 @@
(python (python
+lsp +lsp
+pyright +pyright
+pyenv) ; beautiful is better than ugly +poetry) ; beautiful is better than ugly
;;qt ; the 'cutest' gui framework ever ;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs ;;racket ; a DSL for DSLs
;;raku ; the artist formerly known as perl6 ;;raku ; the artist formerly known as perl6

View file

@ -58,6 +58,8 @@
(package! clippy) (package! clippy)
(package! parrot) (package! parrot)
(package! restclient) (package! restclient)
(package! ement
:recipe (:host github :repo "alphapapa/ement.el"))
(unpin! org-roam) (unpin! org-roam)
(package! org-download) (package! org-download)