aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org13
-rw-r--r--lisp/mastodon-toot.el5
2 files changed, 17 insertions, 1 deletions
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