From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:203:b4db::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QAprDna2y2E61QAAgWs5BA (envelope-from ) for ; Wed, 29 Dec 2021 02:14:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +I+8C3a2y2GJ8AAA9RJhRA (envelope-from ) for ; Wed, 29 Dec 2021 02:14:30 +0100 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 CEB596F61 for ; Wed, 29 Dec 2021 02:14:29 +0100 (CET) Received: from localhost ([::1]:54534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2NXw-0005Rl-Lo for larch@yhetil.org; Tue, 28 Dec 2021 20:14:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2NW2-0005RN-Cm for emacs-orgmode@gnu.org; Tue, 28 Dec 2021 20:12:30 -0500 Received: from [2607:f8b0:4864:20::42b] (port=42684 helo=mail-pf1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2NW0-0001kb-LV for emacs-orgmode@gnu.org; Tue, 28 Dec 2021 20:12:30 -0500 Received: by mail-pf1-x42b.google.com with SMTP id t19so17429775pfg.9 for ; Tue, 28 Dec 2021 17:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=pSMcz68LIM6usclq4+NCoovVGKHt5eQDARHDgmATJxw=; b=jvYVSLkyDKBGD5PVq6agpynf5+yZTeiUQmpk7XsjVPOEwz8refL/r4RJeXnuMmmdwm EhDSmwA43bmLnGmYT4iF19kegn8VwPicavtYb2AgxsEz93aZskgxGnkKfjuPLMlPIPjF 37PYlX3XLf1rNOExZOTggCfakkRwiwYad58qNhfMzRYIhK0ntS4IGtZhInovNscbVTvP 9XEFUQUecBUYeX+484fxNlrv6JhSKrWeEpUJIAhjAgrozPWEHRrYmjwypldw2qCG5/1u BuFY56nVMklaG5z08x/rv29h1vSVJCeHdIsIXEwu8YCqqXShqBV7RrWz3/jR+aKDKxQv dPmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=pSMcz68LIM6usclq4+NCoovVGKHt5eQDARHDgmATJxw=; b=oIK3xD3Aoy1sFnJNtghIoEVswL9lxou7pm75lmH77E82NlMSrBQZTGdjL5Ha2fZ2Ky Ik7tsW7kuPDrG4NoKujAmSbjRnlCsghlSTepg6Gp74VIulEP/LaJBjd9xmXkunU8fVmc 6VnGo0VigcGSF45rjkh6YsEFBRYDnGYoLCAjj0iVVOoGB1PJuqmIXqbYE9DFaTQcgbAn 8OSgpmMGmcy/txGSe96kJGXku1Jq0of0q4Fc59/F4Po4+dqtX9hPlbMelPt117pU42W/ Z3z0Q5eIcVgsqVan6oQMS+QY0ZNT1Wiz/uH5LOHNiUAvfuw+4YJO5AUIIWJ+fhB50RkZ YA7w== X-Gm-Message-State: AOAM533E2CVAHYck9uVrwzaVNJmB4XKaIt8KvJBDv1GMAC4dz8t+o+UI MlTg/da0pLN1uqr02XQxQSNjfQU9x4A= X-Google-Smtp-Source: ABdhPJx99Ki41xX62puOeH8lyprOxpIh7XLWI0JTN0sl7cwXeOTYD6pPmjYMuy0oNpT7sOLhstxY3w== X-Received: by 2002:a63:4:: with SMTP id 4mr21514515pga.250.1640740345273; Tue, 28 Dec 2021 17:12:25 -0800 (PST) Received: from dingbat ([124.149.107.194]) by smtp.gmail.com with ESMTPSA id o21sm13835920pjq.20.2021.12.28.17.12.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Dec 2021 17:12:24 -0800 (PST) References: User-agent: mu4e 1.7.5; emacs 28.0.90 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: C-c C-, in a terminal? Date: Wed, 29 Dec 2021 10:58:18 +1100 In-reply-to: Message-ID: <87tues1afe.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640740469; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pSMcz68LIM6usclq4+NCoovVGKHt5eQDARHDgmATJxw=; b=dpABXrT91Ro1uAr3c+Wyv0vADg9TnjcFrnrSIbqkWLXWvZUMMX59lon4lxMTM4lJIjXrVo OUwNS/LOaKbl/ILBz39asuiGQJOXfQ6tPazJGRZ/4+Dcy0ryLnU8V74QvfNNIbng+S0QmA H1XJDn9caa9Ed2XQRV/cil8B2KY/ZQoOUu43j+pn7/B9ON4tKl9XlGCwxl30sPyx1XDLJW y2VuwgIrOhbwxS6h/MUJE2anXhU1h4rWw+WSu+6gW7Pi2L4O6CjfV5m5zqNWpeCJmYNI++ rOIqT5ze91wHZyGjoGCAdDHShqv9lLYCx13vnWaUTcoz/C/QvJN+9m8unYNUig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640740469; a=rsa-sha256; cv=none; b=aEOfhIatDXlGcxzGN1tTBCR5DTy6SFX9mgy9fyBefaQ1wtciremTlU08VlfSaX9hRFZuM6 u2BeVWF5KymkWgpL/scckKx/Qh98jouFDSUW61rWyCTWTCuxeUqP4omjkr3pwx9+vOrDC2 zU855xLyJsKAzdx2WSa6eSZxi9QgxCA05WaimDfAiBDYE5Nws2wV6A7Y6ocIzMzCBQn+hr 0DyngzDjYWmmyK9P4hWEuM8AwBOG5HiOccvWyCts+VchZnajZYj7Njtj0BiTiNfl5F3ZEv uUiat8ou4FTznCwr366HnZJZQOF7mtXPtpCRm23kdh+mRmy5s3IfeKh8vgeMEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jvYVSLky; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jvYVSLky; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CEB596F61 X-Spam-Score: -3.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: nDpQL34dPr/R Anssi Saari writes: > Hi all, while it's not an ORG mode question exactly, I have a problem > with org-insert-structure-template and it's default shortcut, C-c C-, in > terminals. > > As C-, isn't usually a control character in a terminal, terminals send > just the comma if I hit C-,. Some terminals (at least wsltty) do send > some kind of control sequence but I don't know if mapping other > terminals to do the same (Konsole and urxvt at least) and changing the > keys for Emacs makes sense. I'd have to do it for every terminal I ever > use. > > Alternatively, any suggestions for a more terminal friendly key > combination for org-insert-structure-template in Emacs? It is almost impossible to suggest an alternative key binding because there are just too many variables involved. What you can use will depend on what window manager you use and the key shortcuts it uses (which will 'steal' keys before Emacs get to see them) and on the terminal emulator and the remote access protocol (i.e. ssh, telnet, tmux, screen etc) you use. Then there is differences depending on what Emacs packages you are using and what (if any) key bindings you have already defined and whether they are global or local definitions etc. My suggestion would be to use something like the free-keys (available in melpa) package to identify what key bindings are available when in an org buffer and select one of those. It may also be worthwhile considering using something like hydra. You could define an org specific hydra and associate all your preferred bindings to that hydra. Org can be particularly challenging because it already has some complex key bindings, so avoiding unexpected side effects when adding/changing bindings can be a challenge.