summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-19 19:24:00 +0000
committerjao <jao@gnu.org>2021-11-19 19:24:00 +0000
commitb8fbdc254e1807685f60e4f3287b003df78a45c7 (patch)
treedc81efef3f094d3222cc9a5037744afcca64a5ce
parent6344b3b629259143f5b8bc77c16d1c6554a9628d (diff)
downloadelibs-b8fbdc254e1807685f60e4f3287b003df78a45c7.tar.gz
elibs-b8fbdc254e1807685f60e4f3287b003df78a45c7.tar.bz2
racket-mode custom
-rw-r--r--init.org10
1 files changed, 6 insertions, 4 deletions
diff --git a/init.org b/init.org
index 3258b0a..f7dcde3 100644
--- a/init.org
+++ b/init.org
@@ -2583,13 +2583,15 @@
#+begin_src emacs-lisp
(use-package racket-mode
:ensure t
+ :init (setq racket-show-functions '(racket-show-echo-area))
:config
+ (jao-define-attached-buffer "\\`\\*Racket REPL")
+ (jao-define-attached-buffer "\\`\\*Racket Describe" 0.5)
(add-hook 'racket-mode-hook #'paredit-mode)
(require 'racket-xp)
- (defun jao-racket-rem-redisplays ()
- (remove-hook 'pre-redisplay-functions #'racket-xp-pre-redisplay t))
- ;; (add-hook 'racket-xp-mode-hook #'jao-racket-rem-redisplays)
- (add-hook 'racket-mode-hook #'racket-xp-mode))
+ (add-hook 'racket-mode-hook #'racket-xp-mode)
+ :bind (:map racket-mode-map (("C-c C-d" . racket-xp-describe)
+ ("C-c C-S-d" . racket-xp-documentation))))
#+end_src
*** Python