A snippet from my .stumpwmrc:

(setq *host-name* (remove #\Newline (run-shell-command "hostname" t)))
(cond ((string= *host-name* "minerva")
       (run-shell-command "/usr/bin/synergys -c ~dave/synergy.conf"))
      ((string= *host-name* "hamlet")
       (run-shell-command "/usr/bin/synergyc minerva.")))

I don't think its lisp specific either.

  Dave

Mehul Sanghvi  <mehul.sang...@gmail.com> writes:

> I think that would depend on which Lisp you are using and if it has that or 
> not.
>
>
> Johnny <yggdra...@gmx.co.uk> wrote:
>
>>Hi,
>>
>>I want to share my .stumpwmrc between my desktop and the netbook as the
>>setup is nearly identical. However, there are a couple of lines that are
>>machine specific. In emacs, I solve this by checking the 'system-name'
>>variable in a 'when' clause (see below). Is there something similar I
>>could put in .stumpwmrc?
>>
>>,---- In my emacs
>>| (when (string= (system-name) "my_desktop")
>>|      ... load desktop only stuff
>>|   )
>>`----
>>
>>Thanks!
>>
>>-- 
>>Johnny
>>
>>_______________________________________________
>>Stumpwm-devel mailing list
>>Stumpwm-devel@nongnu.org
>>https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
> _______________________________________________
> Stumpwm-devel mailing list
> Stumpwm-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to