# Any way to hook running a quickscript script on events in Dr. Racket?

**URL:** <https://racket.discourse.group/t/any-way-to-hook-running-a-quickscript-script-on-events-in-dr-racket/1887>\
**Category:** Questions & Answers\
**Created:** [April 21, 2023, 6:20am UTC](https://racket.discourse.group/t/any-way-to-hook-running-a-quickscript-script-on-events-in-dr-racket/1887 "2023-04-21T06:20:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Laurent.O](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/laurent.o/32/18_2.png) [@Laurent.O](https://racket.discourse.group/u/Laurent.O)\
**Post date:** [September 10, 2023, 3:08pm UTC](https://racket.discourse.group/t/any-way-to-hook-running-a-quickscript-script-on-events-in-dr-racket/1887/6 "2023-09-10T15:08:34Z")

</div>

🎉 The snapshot version of Racket (≥ v8.10.0.3) now features Quickscript [hooks](https://users.cs.utah.edu/plt/snapshots/current/doc/quickscript/index.html#%28part._.Hooks%29) 🎉

Here's a first script (to install just like other quickscripts) that automatically [removes trailing spaces on saving](https://gist.github.com/Metaxal/2628c2d4909cee135e5f6dd8254602a0) a file. Make sure to reload the scripts with `Scripts | Manage | Reload menu` once the script is installed.

This is a first attempt and I might make breaking changes before the next official Racket release (8.11, probably). So now is a good time to test it and send feedback! 🙂

---

_[View the full topic](https://racket.discourse.group/t/any-way-to-hook-running-a-quickscript-script-on-events-in-dr-racket/1887)._
