From a46d541c7895320efeeb1ecb23dc73c3d78e7c01 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 28 Feb 2023 22:38:56 +0100 Subject: update readme bindings --- README.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.org') diff --git a/README.org b/README.org index 608d279..71eb52c 100644 --- a/README.org +++ b/README.org @@ -167,12 +167,13 @@ not contain =:client_id= and =:client_secret=. |----------------+---------------------------------------------------------------------------| | | *Notifications view* | | =a=, =j= | accept/reject follow request | -| =c= | clear notification at point | +| =C-k= | clear notification at point | | | see =mastodon-notifications--get-*= functions for filtered views | |----------------+---------------------------------------------------------------------------| | | *Quitting* | | =q= | Quit mastodon buffer, leave window open | | =Q= | Quit mastodon buffer and kill window | +| =C-M-q= | Quit and kill all mastodon buffers | |----------------+---------------------------------------------------------------------------| **** Toot byline legend -- cgit v1.2.3 From 15ad9d08dcd11795986fac0cade255306dfb9e96 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 10 Mar 2023 19:43:40 +0100 Subject: mastodon-toot-mode-hook: disable auto-fill. also readme --- README.org | 13 ++++++++++++- lisp/mastodon-toot.el | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'README.org') diff --git a/README.org b/README.org index 71eb52c..0e99564 100644 --- a/README.org +++ b/README.org @@ -190,7 +190,7 @@ not contain =:client_id= and =:client_secret=. =M-x mastodon-toot= (or =t= from a mastodon.el buffer). -Pops a new buffer/window in =mastodon-toot= minor mode. Enter the +Pops a new buffer/window in =text-mode= and =mastodon-toot= minor mode. Enter the contents of your toot here. =C-c C-c= sends the toot. =C-c C-k= cancels. Both actions kill the buffer and window. @@ -203,6 +203,17 @@ Server's max toot length, and attachment previews, are shown. You can download and use your instance's custom emoji (=mastodon-toot--download-custom-emoji=, =mastodon-toot--enable-custom-emoji=). +The compose buffer uses =text-mode= so any configuration you have for that mode +will be enabled. If any of your existing config conflicts with =mastodon-toot=, +you can disable it in the =mastodon-toot-mode-hook=. For example, the default +value of that hook is as follows: + +#+begin_src emacs-lisp +(add-hook 'mastodon-toot-mode-hook + (lambda () + (auto-fill-mode -1))) +#+end_src + **** Keybindings |---------+----------------------------------| diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 2625695..b8930b0 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1654,6 +1654,11 @@ EDIT means we are editing an existing toot, not composing a new one." ;;;###autoload (add-hook 'mastodon-toot-mode-hook #'mastodon-profile--fetch-server-account-settings-maybe) +;; disable auto-fill-mode: +(add-hook 'mastodon-toot-mode-hook + (lambda () + (auto-fill-mode -1))) + (define-minor-mode mastodon-toot-mode "Minor mode to capture Mastodon toots." :group 'mastodon-toot -- cgit v1.2.3