From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mE1HBWnkPGAmJwAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 12:56:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oBX5AGnkPGDobQAAbx9fmQ (envelope-from ) for ; Mon, 01 Mar 2021 12:56:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 204D822507 for ; Mon, 1 Mar 2021 13:56:08 +0100 (CET) Received: from localhost ([::1]:58236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGi5m-0002MR-BZ for larch@yhetil.org; Mon, 01 Mar 2021 07:56:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGi5Q-0002ME-3V for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 07:55:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]:47723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGi5N-0000VT-Si for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 07:55:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 22BDC240100 for ; Mon, 1 Mar 2021 13:55:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1614603339; bh=81th94r48H7YqHXZLG5kfGmnVmItpMzk4L4/7rXA3PU=; h=From:To:Subject:Date:From; b=OOBKNtup8NyO/dEMxA5DfslGYmRwOyOcjHieyJ8hFQy+rZlklFUgStbMnkxJ6x6Lt ffpak9FbFfZb2r/WGYsz/jdTS2/SFshzzlqHIRj+fJ/BrjJzMiFUc4QTWDoziLE500 L6sdAKRSmEW8Jcs/g5iqEH4spUQ0LcTpqi4OL8O9hPNjlqEKL9JCHWg3/ITeFsdRfm FU5X5Dcuj10sTuQ/mu+dFyq0RkdNbBRRI/HmYLxdkxdZDm0m6I/jTy30dbytIPK6Dn bw+qAVsVUGgKGImuD0JIMb/GpAb4+JY4bDUQxnAEGl3jdyWJB96jYKFktB2DDSYnIu z53J3JZI180Cg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dq0cB1QHNz6tmN for ; Mon, 1 Mar 2021 13:55:37 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [tip for EXWM users] An alternative method for isolate trees Date: Mon, 01 Mar 2021 13:55:37 +0100 Message-ID: <877dmr119y.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614603368; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I6bILZVd34tw/FtwCoW89rpMR4rWng5lKcDXzYYir+0=; b=PkAPGacgtreWLHcXVXt8aiF2NvmxD8MOCngb0Lik1nnFwKGEW4Dfo066n2Jh1+2HcXViTl RzmQWi18NfEHT7bXZTJ8Sv2kjBkeBpVOG+BNNy4EkNQdjVT9+WqVz//s60WsmJkOUEsM+J BX5Je8dz78BlVvAuNe1Y2wXahFDRSogHqUTcg7QXX4IDxA89aPcl6HA9/OweoTQqPh+bwc V4rbDWV7sED1XhtPpE5zzNFi+bbMu/X/EgZZxpPwQSwcDIqeo1VCTvIAEg/0m11h3/PBT5 kHE4FF/ZhuCqsJ1lhtFTGeHPyeu9L3UCf0q7coEQfmObIjnWa1Xc2X8qMRNwjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614603368; a=rsa-sha256; cv=none; b=cfNvwoD5vn91QDvgAyoLkskBINn+/8W2R6WR62HUWI0iaBbOadxIn5cmWlQzaLTItApRjo IkRptSFoee+bSRoYomiMTfaLpjAj+AAP3naQg2LUGoYKTDRURtkwxth++MJkn7al5K8IOi G1XIN9rJBdZtN4aOqp0IHQrJQ5OqWI0aRWcO7mFDhkTyEwrv8rAIDo2Pol7oX928naV9Mw BMdWjdeIzlrLXoNh2pYJEQhhJtGWv4TlBm6bSV3Qu3yIyx42KMENgFCuph5HNm9izkQbgj SpIA0m1zjmF4fYKrwqeZqDyW5/T+A0mrUcUmYMDP+NwOav34TWRItlb2fmasmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OOBKNtup; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OOBKNtup; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 204D822507 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2JLxVcd6emW+ Hi, Since EXWM uses Emacs frames as virtual desktops, I have written this alternative method of `org-tree-to-indirect-buffer', which I share here. With this method I can have several isolated trees, with their own name, and access them quickly (with helm-buffer-list, for example): #+begin_src emacs-lisp (defun my-goto-buffer-regexp (regexp) (dolist (buffer (buffer-list)) (let ((name (buffer-name buffer))) (when (and name (not (string-equal name "")) (string-match regexp name)) (switch-to-buffer buffer))))) (defun my-org-tree-to-indirect-buffer () (interactive) (let ((buf (buffer-name)) (ind-buf (replace-regexp-in-string "\\[.+\\]" "" (nth 4 (org-heading-components)))) (org-indirect-buffer-display 'new-frame)) (org-tree-to-indirect-buffer) (my-goto-buffer-regexp ind-buf) (rename-buffer (concat buf "::" ind-buf)))) #+end_src Best regards, Juan Manuel