mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-04 08:11:44 -08:00
fix(racket): allow toggling smart bracket mode
Adds a custom variable to allow disabling smart bracket mode. Fix: #1452
This commit is contained in:
parent
baf680f9c8
commit
519517a65f
2 changed files with 29 additions and 26 deletions
|
|
@ -70,6 +70,7 @@ Formatting is handled using the [[doom-module::editor format]] module via [[http
|
|||
(add-hook 'racket-mode-hook #'racket-smart-open-bracket-mode))
|
||||
#+end_src
|
||||
|
||||
You can manually turn off smart bracket mode by setting the variable ~+racket-enable-smart-brackets~ to nil.
|
||||
** 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
|
||||
|
|
@ -91,6 +92,5 @@ Once enabled, unicode input can be toggled by pressing C-\ or running
|
|||
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
||||
|
||||
* TODO Appendix
|
||||
#+begin_quote
|
||||
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
||||
#+end_quote
|
||||
** Variables
|
||||
- ~+racket-enable-smart-brackets~: Enable smart bracket mode unless parinfer or lispy are enabled. Default is true.
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
(after! projectile
|
||||
(add-to-list 'projectile-project-root-files "info.rkt"))
|
||||
|
||||
(defvar +racket-enable-smart-brackets t
|
||||
"If non-nil, without parinfer and lispy, enable racket smart bracket mode.")
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
|
|
@ -59,7 +61,8 @@
|
|||
(cl-pushnew 'racket flycheck-disabled-checkers)))))
|
||||
|
||||
(unless (or (modulep! :editor parinfer)
|
||||
(modulep! :editor lispy))
|
||||
(modulep! :editor lispy)
|
||||
(not +racket-enable-smart-brackets))
|
||||
(add-hook mode-hook #'racket-smart-open-bracket-mode))
|
||||
|
||||
(map! (:map racket-xp-mode-map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue