(defun mc--compile (compile-command) ;; Call compile with the compile command ;; but append the remote-command before (if (null mc--remote-command) ;; local compile (mc--compile-sav compile-command t) ; <---- "t" added to list ;; remote compile (let ((thisdir (expand-file-name (or default-directory "~")))) (mc--compile-sav (concat ;; The command to lauch remote commands mc--remote-command ;; Change to this buffer directory ... "'( cd " thisdir " ; " ;; then run the compile command compile-command " )'")))))