modify for emacsclient