JetBrains/ideavim — pull request #26 by riggs (2014-03-24 22:01:01+00:00)
Title: Run "launchctl stop com.apple.SystemUIServer.agent" instead of OS restart

The command "launchctl stop com.apple.SystemUIServer.agent" is sufficient to make the changes to the ApplePressAndHoldEnabled setting take effect, rather than requiring a restart of OS X.

PS. I haven't touched Java in 10+ years, so I'm not sure what the best idiom is for two sequential 'process' calls.