+### Yet another possibility -- script to start emacs
+
+Instead of adding new configurations you could also write a special
+script which starts and configures emacs suitable for remote usage.
+Copy the following "template" to a new name e.g. in `$HOME/bin/`,
+edit the value for `master-USER@HOST3:22` and perhaps add more
+post eval-after-load notmuch configs there.
+
+ #!/bin/sh
+ :; exec "${EMACS:-emacs}" --debug-init --load "$0" "$@"; exit
+
+ (setenv "REMOTE_NOTMUCH_SSHCTRL_SOCK" "master-USER@HOST3:22")
+
+ (eval-after-load "notmuch"
+ (lambda ()
+ (setq notmuch-command (concat (file-name-directory load-file-name)
+ "remote-notmuch.sh"))
+ ;; place for more post-notmuch-load emacs configs if any
+ ))
+ (notmuch)
+
+ ;; Local Variables:
+ ;; mode: emacs-lisp
+ ;; End:
+