Merge pull request #4274 from EoinDoherty/racket-unicode
Remove unicode input mode default from Racket REPL
This commit is contained in:
commit
110d70bdff
2 changed files with 11 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
- [[#features][Features]]
|
- [[#features][Features]]
|
||||||
- [[#configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#racket-smart-open-bracket-mode][racket-smart-open-bracket-mode]]
|
- [[#racket-smart-open-bracket-mode][racket-smart-open-bracket-mode]]
|
||||||
|
- [[#unicode-input][Unicode Input]]
|
||||||
- [[#troubleshooting][Troubleshooting]]
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
|
@ -41,5 +42,15 @@ or check your package manger.
|
||||||
(add-hook! racket-mode
|
(add-hook! racket-mode
|
||||||
#'racket-smart-open-bracket-mode))
|
#'racket-smart-open-bracket-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Unicode Input
|
||||||
|
The optional ~racket-unicode~ input method lets you type unicode characters such as λ or π.
|
||||||
|
To enable unicode input for a single buffer, run ~racket-unicode-input-method-enable~.
|
||||||
|
To enable unicode input by default on all racket buffers, add the following hooks
|
||||||
|
to your ~config.el~:
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(add-hook 'racket-mode-hook #'racket-unicode-input-method-enable)
|
||||||
|
(add-hook 'racket-repl-mode-hook #'racket-unicode-input-method-enable)
|
||||||
|
#+END_SRC
|
||||||
|
Once enabled, unicode input can be toggled by pressing C-\ or running ~toggle-input-method~.
|
||||||
|
|
||||||
* TODO Troubleshooting
|
* TODO Troubleshooting
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
(use-package! racket-mode
|
(use-package! racket-mode
|
||||||
:mode "\\.rkt\\'" ; give it precedence over :lang scheme
|
:mode "\\.rkt\\'" ; give it precedence over :lang scheme
|
||||||
:hook (racket-repl-mode . racket-unicode-input-method-enable)
|
|
||||||
:config
|
:config
|
||||||
(set-repl-handler! 'racket-mode #'+racket/open-repl)
|
(set-repl-handler! 'racket-mode #'+racket/open-repl)
|
||||||
(set-lookup-handlers! '(racket-mode racket-repl-mode)
|
(set-lookup-handlers! '(racket-mode racket-repl-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue