# Any way to set preferences programmatically?

**URL:** <https://racket.discourse.group/t/any-way-to-set-preferences-programmatically/4165>\
**Category:** Questions & Answers\
**Tags:** drracket\
**Created:** [March 24, 2026, 1:00pm UTC](https://racket.discourse.group/t/any-way-to-set-preferences-programmatically/4165 "2026-03-24T13:00:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [March 24, 2026, 1:32pm UTC](https://racket.discourse.group/t/any-way-to-set-preferences-programmatically/4165/2 "2026-03-24T13:32:44Z")

</div>

Use `(find-system-path 'pref-file)` to find the preferences file.  
Then you need to look through to find the keys you need.

```scheme
Welcome to Racket v8.12 [cs].
> (find-system-path 'pref-file) 
#<path:/Users/soegaard/Library/Preferences/org.racket-lang.prefs.rktd>

% head -5 /Users/soegaard/Library/Preferences/org.racket-lang.prefs.rktd
(
 (|plt:DrRacket 7.7-splash-max-width| 996)
 (|plt:DrRacket 7.7.0.4-splash-max-width| 996)
 (|plt:DrRacket 7.7.0.7-splash-max-width| 993)
 (plt:framework-pref:drracket:home/end-is-beginning/end-of-document #t)

```

Most settings are under `drracket` not `DrRacket`.

```scheme
% grep drracket /Users/soegaard/Library/Preferences/org.racket-lang.prefs.rktd | wc -l
     114

```

---

_[View the full topic](https://racket.discourse.group/t/any-way-to-set-preferences-programmatically/4165)._
