From a440c4c13460df0188b1863d86bcaeeca8d5f0b2 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Mon, 2 Oct 2023 15:04:43 +0200 Subject: add misskey notes regex to masto-url-p --- lisp/mastodon.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon.el') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 0dc6853..2a817ff 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -394,7 +394,8 @@ not, just browse the URL in the normal fashion." (string-match "^/u/[[:alpha:]]+$" query) (string-match "^/c/[[:alnum:]]+$" query) (string-match "^/post/[[:digit:]]+$" query) - (string-match "^/comment/[[:digit:]]+$" query))))) ; lemmy + (string-match "^/comment/[[:digit:]]+$" query) ; lemmy + (string-match "^/notes/[[:alnum:]]+$" query))))) ; misskey post (defun mastodon-live-buffers () "Return a list of open mastodon buffers. -- cgit v1.2.3 From 63f55bb016865b88f7df295e9d50a9e64403a474 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 4 Oct 2023 16:11:51 +0200 Subject: refactor mode function, to avoid multiple addition of lambda. --- lisp/mastodon.el | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'lisp/mastodon.el') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 2a817ff..94189cd 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -420,14 +420,17 @@ Calls `mastodon-tl--get-buffer-type', which see." buf-names))) (switch-to-buffer choice))) +(defun mastodon-mode-hook-fun () + "Function to add to `mastodon-mode-hook'." + (when (require 'emojify nil :noerror) + (emojify-mode t) + (when mastodon-toot--enable-custom-instance-emoji + (mastodon-toot--enable-custom-emoji)) + (when mastodon-tl--highlight-current-toot + (cursor-face-highlight-mode)))) ; 29.1 + ;;;###autoload -(add-hook 'mastodon-mode-hook (lambda () - (when (require 'emojify nil :noerror) - (emojify-mode t) - (when mastodon-toot--enable-custom-instance-emoji - (mastodon-toot--enable-custom-emoji)) - (when mastodon-tl--highlight-current-toot - (cursor-face-highlight-mode))))) ; 29.1 +(add-hook 'mastodon-mode-hook #'mastodon-mode-hook-fun) ;;;###autoload (add-hook 'mastodon-mode-hook #'mastodon-profile--fetch-server-account-settings) -- cgit v1.2.3 From 1964ee8ad6a0cd91a149a11925e1bcd94c83c072 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 5 Oct 2023 10:54:23 +0200 Subject: bump version --- lisp/mastodon.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/mastodon.el') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 94189cd..1ad1b5d 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -6,7 +6,7 @@ ;; Author: Johnson Denen ;; Marty Hiatt ;; Maintainer: Marty Hiatt -;; Version: 1.0.2 +;; Version: 1.0.3 ;; Package-Requires: ((emacs "27.1") (request "0.3.0") (persist "0.4")) ;; Homepage: https://codeberg.org/martianh/mastodon.el -- cgit v1.2.3