From f638e255b54b403a41c5d2180c0dc1d03ae316f0 Mon Sep 17 00:00:00 2001 From: Greg Hendershott Date: Fri, 18 Oct 2024 00:24:20 -0400 Subject: [PATCH] Doc tweaks --- doc/racket-mode.org | 9 +-------- doc/racket-mode.texi | 20 +++++++------------- racket-input.el | 11 ++++++----- 3 files changed, 14 insertions(+), 26 deletions(-) diff --git a/doc/racket-mode.org b/doc/racket-mode.org index ba84ab9c..c77e66a1 100644 --- a/doc/racket-mode.org +++ b/doc/racket-mode.org @@ -386,14 +386,7 @@ To insert various Unicode math symbols, you can: - Use a command: {{{see(racket-insert-symbol)}}}. -- Use an optional Emacs input method, which you enable/disable in a buffer using {{{ref(racket-input-mode)}}}. To enable it for all new buffers, put the following in your Emacs init file: - -#+BEGIN_SRC lisp -(dolist (hook '(racket-mode-hook - racket-hash-lang-mode-hook - racket-repl-mode-hook)) - (add-hook hook #'racket-input-mode)) -#+END_SRC +- Use an Emacs input method, which you can enable in a buffer using a minor mode: {{{see(racket-input-mode)}}}. ** Ligatures diff --git a/doc/racket-mode.texi b/doc/racket-mode.texi index 322e2c60..ea402288 100644 --- a/doc/racket-mode.texi +++ b/doc/racket-mode.texi @@ -859,16 +859,9 @@ To insert various Unicode math symbols, you can: Use a command: @xref{racket-insert-symbol}. @item -Use an optional Emacs input method, which you enable/disable in a buffer using @ref{racket-input-mode}. To enable it for all new buffers, put the following in your Emacs init file: +Use an Emacs input method, which you can enable in a buffer using a minor mode: @xref{racket-input-mode}. @end itemize -@lisp -(dolist (hook '(racket-mode-hook - racket-hash-lang-mode-hook - racket-repl-mode-hook)) - (add-hook hook #'racket-input-mode)) -@end lisp - @node Ligatures @section Ligatures @@ -1429,13 +1422,14 @@ is immediately replaced with ``∀''. See @ref{racket-input-translations} for the full list of translations, which is also used by the @ref{racket-insert-symbol} command. -To automatically enable the Racket input method in racket-mode -and racket-repl-mode buffers, put the following code in your -Emacs init file: +To automatically enable the Racket input method for all new +buffers, put the following in your Emacs init file: @lisp - (add-hook 'racket-mode-hook #'racket-input-mode) - (add-hook 'racket-repl-mode-hook #'racket-input-mode) + (dolist (hook '(racket-mode-hook + racket-hash-lang-mode-hook + racket-repl-mode-hook)) + (add-hook hook #'racket-input-mode)) @end lisp You may use the standard Emacs key C-\ to toggle the current diff --git a/racket-input.el b/racket-input.el index 6352521a..84667e8d 100644 --- a/racket-input.el +++ b/racket-input.el @@ -270,13 +270,14 @@ is immediately replaced with \"∀\". See `racket-input-translations' for the full list of translations, which is also used by the `racket-insert-symbol' command. -To automatically enable the Racket input method in racket-mode -and racket-repl-mode buffers, put the following code in your -Emacs init file: +To automatically enable the Racket input method for all new +buffers, put the following in your Emacs init file: #+BEGIN_SRC elisp - (add-hook \\='racket-mode-hook #\\='racket-input-mode) - (add-hook \\='racket-repl-mode-hook #\\='racket-input-mode) + (dolist (hook '(racket-mode-hook + racket-hash-lang-mode-hook + racket-repl-mode-hook)) + (add-hook hook #'racket-input-mode)) #+END_SRC You may use the standard Emacs key C-\\ to toggle the current