stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Sharing .stumpwmrc between computers


From: David Bjergaard
Subject: Re: [STUMP] Sharing .stumpwmrc between computers
Date: Wed, 30 Nov 2011 16:59:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

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  <address@hidden> writes:

> I think that would depend on which Lisp you are using and if it has that or 
> not.
>
>
> Johnny <address@hidden> 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
>>address@hidden
>>https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]