Re: Config File Usage
Brett Viren <[email protected]> Mon, 15 Oct 2018 09:51:21 -0400
| Newsgroups | gmane.comp.window-managers.sawfish |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Jeremy Smith <[email protected]> writes: > Greetings I hope this list is still alive and that work is still being > done on sawfish. I have been using it for over a decade as my window > manager (and desktop manager for that matter) on various systems. Me too! > In regards to using it on multiple systems, I am attempting to > accomplish the following: > > * Have a global config file that contains configuration that can be > applied to all of my computers running sawfish. This file will be > exactly the same across all systems and will only contain the > configuration that is the same across all systems. I use "vcsh" (+myrepo) and a self hosted Git server (gogs/gitea) for managing "dot files" like this on multiple hosts/accounts. > * Have a local config file for system-specific configurations that is > applied after the global config. This file will be different on each > system and will only contain system-specific configuration. You could create system-specific configuration in a rep file named by the output of the rep function (system-name) and then load that file from the file holding global code based on calling (system-name). These system-specific files can also be managed/distributed all together via "vcsh". The "other" systems' files will exist on each system but they will be just vestigial. > While this seems to work for things like menus and > custom-set-typed-variable commands, I quickly discovered that I can't > put "custom-set-keymap" commands in external lisp files, only in the > "~/.sawfish/custom" file. sawfish will fails parse the rc file. > > Is there a reason why I can't use "custom-set-keymap" commands in > external lisp files? Or is there a way around this limitation? if I > could do this, I would be able to accomplish everything I want... I don't know, but I guess the rc files are getting loaded before the "(defcustom keymap ...)" is called so no custom-set-keymap is yet defined. Maybe you can directly call bind-keys on 'global-keymap? https://download.tuxfamily.org/sawfish/themes/prog-manual.html#Keymaps =2DBrett. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJbxJtaAAoJEFsAceCXpRtHEH8P/jqUuyYuoHHM+wD51x4HW0Uy IeyoAxGxV1ocgk7Ip9/SWjEI3Rlz/XIMbbN4ms+3klfmKKtReSgS6gMdQymPIKqt 4tr3oj4SUmyge/gDuHuXFP4XKsD/sMWyGx+CbpD6JWTNVK6ul3nSeXRksdwdQfxy uBwWrvTyTumDLNkf4TY2bYXRw8S7ruUvIZMklj0VQvXMGRu8/WCmsqiomyzOV9Ln CAdTZ79Tj3F33rJFgaDsigm4YzRHYzcXRwUq+WegTnJE+OXoslIPNBLhK1FY+6Hp nQMIoB+VsZvpWtED/aIvloJNu2X9ETj/etQnPfvJTjvULQm+vb4WCCAm5CVP+0rY 7QospU2FuLuZC57EUyj/+s8fLuyOotOhz+hHnp8vQGpoW4Nwad/FDRzFQZxX7M0V kxI22dQmcbnuoMoB1OgZWI72qVbC0CpyoXKH09xDzwrQiUdH9smNBNuwECX5uoNn sy2CqgdqVSSmbKWZ2OVbJoKYVC4EGEp+I9J2rn2MAZbSeeo7sTflKk2OVftCJnrg I/dgdcoC9BBrFWoshhmJR1q+LwPNJMNEO7EaEEl5PqmVfBdixubB6QvoyLJX4y6P WMu/hqWcpsgm56Q7IqpxLiDlBZMQB5PIyZeSWIfRDRprC/n7jSO5dUZPmrV0/qMY b8wG9a4rg7ZNY+RxPBZG =7PhO -----END PGP SIGNATURE----- --=-=-=-- -- Sawfish ML