Skip to content

Commit

Permalink
Doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Oct 18, 2024
1 parent 395c981 commit f638e25
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
9 changes: 1 addition & 8 deletions doc/racket-mode.org
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 7 additions & 13 deletions doc/racket-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions racket-input.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f638e25

Please sign in to comment.