From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YLu3CY84f2DaGQAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 22:24:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0PVhBY84f2C2LAAAB5/wlQ (envelope-from ) for ; Tue, 20 Apr 2021 20:24:47 +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 4447E25CF4 for ; Tue, 20 Apr 2021 22:24:46 +0200 (CEST) Received: from localhost ([::1]:44840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYwvN-0000GG-Aq for larch@yhetil.org; Tue, 20 Apr 2021 16:24:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYwum-0000G3-Ef for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 16:24:08 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:35526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYwuk-0005dv-N9 for emacs-orgmode@gnu.org; Tue, 20 Apr 2021 16:24:08 -0400 Received: by mail-qv1-xf30.google.com with SMTP id x27so19329425qvd.2 for ; Tue, 20 Apr 2021 13:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=TAO9TGwYnHaGjl/8KZZaefwy4wbpNvaU3wbf51P25Rg=; b=HX1kx6E/EkgAJ9Q1pD8TReMNi4y2kHgRQe+plMfPzLF2mZCSwuvEsq7PKvQOmzRGTm NNR/rbvGPgRkdJaGQ3GAj/olC8agMfR5Nv0Y+yAFc4NLMC1WVXMafyHI9tw/xPwDpnrD eF3vy4o2cWcDZh52acutx13REZ0HrgCZ8x9Z0fhejW/l1sQfPOvfVBeah3P61NJrTTFn 5FTmcuB1B0M1ENQ9qs2SGXDJkXo3G4c3F3Oul7LPF4j6M3dJk3pQgLS/MeINc14JyZt7 941nIv2LLxAGpJ+54bhs+pqauo5QeEGxPJ8tmjrjToVnLGwNuJaZpGVNlKpvbH9O8gtA SzQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=TAO9TGwYnHaGjl/8KZZaefwy4wbpNvaU3wbf51P25Rg=; b=gepa+dNrj8b7Iek4v9+lyNzoBwlla+VCk3n4ggYuVxI1P+XGmKtPrtGgtsseEPwKPV hwwkXZWvNrd0n9sX54v6ufviWiyLoEO4OE6HW0PuX8JTD0I54GYR54gVN5Kjleoeq1uU lgpP7OtemI1b5SpH4hV7kkyGwdll8X3DF0Z84WepbqvjFVSCJiKy3uaQl0RiJfK83Ym4 E2xe3zg0jZENTy0jTXnzdeV8EIXIoCGp/qzjCwfK2NJYqn50q6bVGc/fYsPq1MLgvT55 fKlSQJrzPgfCB8p7JvIvEDBWRUC0hBMvDHF3kIp5M+Bu7DLszd/U+s8y8MyoIAJ/AEiK cnzA== X-Gm-Message-State: AOAM533fwNOUH8W1Kk95tDpj2j08ASXGnqAge3RntPJzSahlu3lP8W1X aeKFX9kTBajYqYMJiEA2+tJKyHQi4SuPcQ== X-Google-Smtp-Source: ABdhPJyPHLF3G8WOC2Qowcf96h7HfAq/O+tpO/BsBeLvrlur7EiDQ6322q26jlYHGNgSY7rmq7fEGQ== X-Received: by 2002:a0c:9e17:: with SMTP id p23mr28579342qve.7.1618950244711; Tue, 20 Apr 2021 13:24:04 -0700 (PDT) Received: from Johns-iMac.local (full-vpn-1.nat.cmu.net. [128.2.149.108]) by smtp.gmail.com with ESMTPSA id r63sm158310qkf.23.2021.04.20.13.24.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Apr 2021 13:24:04 -0700 (PDT) References: <877dlnf7vw.fsf@gmail.com> User-agent: mu4e 1.4.15; emacs 27.1 From: John Kitchin To: Matt Price Subject: Re: Using backticks for the inline code delimeter? In-reply-to: Message-ID: Date: Tue, 20 Apr 2021 16:24:02 -0400 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=johnrkitchin@gmail.com; helo=mail-qv1-xf30.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: autofrettage , emacs-orgmode@gnu.org, Timothy 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=1618950286; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=TAO9TGwYnHaGjl/8KZZaefwy4wbpNvaU3wbf51P25Rg=; b=mGMaxtUFToj2MOqnFxJ5oG2+NuAagfbLJVfzpYCF9Gg5G8TyIDPHLYkG2gNWAml6iGpn5+ sI/Uc2N5o0LJ20gvl7LjqiP+kzYoPDyFGnqtqOnbyrOlHxRorOgf5Bf09/c7wezHNZuL3s otP53lvgGxKEyerZ6IUEPfukrEKTBBKt3gagkXJMosfFITs4EbU+iItssboKFRs87WSAMr Cz9/gaQpeyzQ7kZk6p6wqwv6dAGwWdpBDW44ZbVxeZEf2EJ5OfpXSWeXrk6U4BUd4mdlez mO9oxElmWZd1JhMGkx3Edk9I46eXXsMRG3DbHO/ZndFhLOc7eB5ifDWAbEgBjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618950286; a=rsa-sha256; cv=none; b=V961KUk1XMYlKWx/AEH6pYDHXlelPUyoYFHeDbZRccJuYv6p6nc4MW33cA4xfGDz1F5xwo jZkGNo9zxJxJQ92aH4QL8a3gwQ13AsupaWBFK6wx0JuugyPfSCPZOY5x6HK1/xfgnaGWbF quLOvHgl84XFwLUOx6t3NmCPDyzZstvHeJb3crClWNX4I59RohbPiblsZdYmPVSOGdamoc 7gGyBv0HmcmzplTC5UrnmErxWcWe0VnYBH32I/lcm+dR7mXma7KmflDc37QfCeIL7UI0bi +Kz4CcBZzcREy2KCLs8OooWXZsQ7nMUnnnHv318MGic2xoOAwM1TSxQpkfZ2HA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="HX1kx6E/"; 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: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="HX1kx6E/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 4447E25CF4 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: xrdPEYhVYT18 I have used an approach like the one here https://endlessparentheses.com/define-context-aware-keys-in-emacs.html to make context aware key-bindings. Matt Price writes: > On Wed., Mar. 31, 2021, 3:22 p.m. Timothy, wrote: > >> >> autofrettage writes: >> >> > Quick and Dirty: Bind key '`' to ~ in Emacs? >> > >> > (I guess it is clear I haven't thought about the consequences.) >> >> You can add that just to the Org-mode map. That wouldn't be too bad, >> there's always C-q. >> > > Is it possible to bind a key in org-mode but bind it back to another > character if you're in a special environment, eg a code block? That would > probably be my preference. So "`" inserts "~" when you're writing text but > "`" in an elisp or markdown SRC block, for instance. > > I guess just write a function that checks context? Presumably all the > overloaded keybindings do this already but I guess I don't really know how > they do so. > > I do in general wish it were easier to switch between writing markdown and > writing org, since I often have to write markdown for work. > >> >> -- >> Timothy >> >> -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his