diff options
author | mousebot <mousebot@riseup.net> | 2021-05-10 16:24:51 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-05-10 16:28:29 +0200 |
commit | 4fcdb8c4b919b3a708684d1b373208dc67367664 (patch) | |
tree | db2b9bff0b473470ae026d5209e17a80ac009dec /lisp | |
parent | c69bf45a170a28934d18b762960845e773922514 (diff) |
add my profile function
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-profile.el | 5 | ||||
-rw-r--r-- | lisp/mastodon-tl.el | 2 | ||||
-rw-r--r-- | lisp/mastodon.el | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el index 2c6b798..254f042 100644 --- a/lisp/mastodon-profile.el +++ b/lisp/mastodon-profile.el @@ -190,6 +190,11 @@ following the current profile." (mastodon-profile--make-author-buffer account) (message "Cannot find a user with handle %S" user-handle)))) +(defun mastodon-profile--my-profile () + "Show the profile of the currently signed in user." + (interactive) + (mastodon-profile--show-user (mastodon-auth--get-account-name))) + (defun mastodon-profile--account-field (account field) "Return FIELD from the ACCOUNT. diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index b44b160..1b3837d 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -750,7 +750,7 @@ Move forward (down) the timeline unless BACKWARD is non-nil." (goto-char (point-max)) (mastodon-tl--property 'toot-id t))) -(defun mastodon-tl--as-string(numeric) +(defun mastodon-tl--as-string (numeric) "Convert NUMERIC to string." (cond ((numberp numeric) (number-to-string numeric)) diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 7cd673b..e338793 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -114,6 +114,7 @@ Use. e.g. \"%c\" for your locale's date and time format." (define-key map (kbd "C-S-B") #'mastodon-tl--unblock-user) (define-key map (kbd "M") #'mastodon-tl--mute-user) (define-key map (kbd "C-S-M") #'mastodon-tl--unmute-user) + (define-key map (kbd "C-S-P") #'mastodon-profile--my-profile) map) "Keymap for `mastodon-mode'.") |