aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-profile.el5
-rw-r--r--lisp/mastodon-tl.el2
-rw-r--r--lisp/mastodon.el1
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'.")