From f742b6df6d12e0f7484b248b841db18b82e46b1f Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Fri, 4 Dec 2020 22:00:05 -0500 Subject: Fix multi-head and replace EXWM workspaces with eyebrowse. --- init.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index fa28a21..cf2dd26 100644 --- a/init.el +++ b/init.el @@ -154,6 +154,19 @@ `(progn ,@form) '(progn))) +(require 'cl-lib) + +(defmacro choose-for-machine (&rest clauses) + "Return the `cadr' of the CLAUSE whose `car' is `(system-name)'." + (let* ((name-clause (cl-find-if #'(lambda (x) + (string= (system-name) (car x))) + clauses)) + (last-clause (cl-find-if #'(lambda (x) (eq 't (car x))) + clauses))) + (cond (name-clause (cadr name-clause)) + (last-clause (cadr last-clause)) + (t 'nil)))) + (load-module "core") (load-module "jakob") (load-module "appearance") -- cgit v1.3