From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EFx9Atrzrl4FSAAA0tVLHw (envelope-from ) for ; Sun, 03 May 2020 16:39:54 +0000 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 SNHcLOPzrl6WWgAAB5/wlQ (envelope-from ) for ; Sun, 03 May 2020 16:40:03 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 8CA239445E4 for ; Sun, 3 May 2020 16:40:02 +0000 (UTC) Received: from localhost ([::1]:36476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVHer-00048P-PL for larch@yhetil.org; Sun, 03 May 2020 12:40:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVHeK-00047i-0x for emacs-orgmode@gnu.org; Sun, 03 May 2020 12:39:28 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:40257) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVHeI-0003Ss-Eb for emacs-orgmode@gnu.org; Sun, 03 May 2020 12:39:27 -0400 Received: by mail-ed1-x534.google.com with SMTP id d16so11470356edq.7 for ; Sun, 03 May 2020 09:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5VwNjwJOtZKh3oJRRdNC1vrsWfYZnG5U9+zy9ysv2Ds=; b=BD7R213YtFWNTP2XNT7oFz/Qgawtx88U28orvNgi9Yyk6aLOQX1xaYCbxh863wOHUb JW0BBOPt5N2dbSXdIaHb53CW+vIZCG7kizkR7iLDblnJgCRSLdQ/tUq3uTuRg4ZI01hg pvLebKpDK2LT7+u0wc5wrPLL56hrGjoozM4Q9kgPsNEHupH4F/s2JEI23mBQQ6GNfOq5 0N9vQ8IedTZjI4r9qKBB8rRMMw2LA8UT+ku80tUDgAqrZn4WYcswTwQSTm2bhfzDcbJj n4hKCOLrMzelReFgXn2nypCr98wR9vZQqmVS755iBZ2b9rq/MLAD/LaUE9VzymaaGPQk JPUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5VwNjwJOtZKh3oJRRdNC1vrsWfYZnG5U9+zy9ysv2Ds=; b=rr0sljuwYGqntp3rnuNUozYcZNkb4/mqMTndIhCoXT8t+xWVAthm7I54aeDeNLlS7O Vlr7zML2Dg7KE1h0AJlVB1ND1khVeo+QCYI9St9Pf+IvaCZc+LXptyMgQcZxp6sptbRU zCK279VJ0BNkyx4aiRzt9QmNKzyfX935A0PGImeGiP6FtoekRt8YG3/DoGzG85J2IPIj JjSWjQX0bgNdhn/6TlTFIk9XiYELAH/jl4uWR2fZRm7R/fhK+mh1mYZ2NlWXui4TKjb+ f6UCZorVefiZRFUEwr6uoWTmvK9d3Gjmq4zpvQhnHWhyU6PgTc8x6CvWdDVhjtFgD9Oe e5kw== X-Gm-Message-State: AGi0PuYG1kz2et9ESIWX4iTAi86CLrhGrlcJoAov0JXL7/Jp7zgkjZN4 NOotViJ2TuCdGEi48KRfPkFp25CMvP+bPW35OxJRPw== X-Google-Smtp-Source: APiQypKU+AbE2L6G/gWFjDY/A4DUXkK9beam1TaGT4TxXoIPlHaHQIP0K2zr7sxGwtE0NOwyuLBoX2qP1sUeCVBfBiM= X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr11713837edb.334.1588523964477; Sun, 03 May 2020 09:39:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Diego Zamboni Date: Sun, 3 May 2020 18:39:13 +0200 Message-ID: Subject: Re: Tricking org-mode into using markdown conventions To: Daryl Manning Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2a00:1450:4864:20::534; envelope-from=diego@zzamboni.org; helo=mail-ed1-x534.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001, URIBL_SBL=1.623, URIBL_SBL_A=0.1 autolearn=_AUTOLEARN 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: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=BD7R213Y; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.21 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49382363900218]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.14), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[zzamboni-org.20150623.gappssmtp.com:+]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[diego@zzamboni.org,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[zzamboni-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[wakatara.com:email,zzamboni-org.20150623.gappssmtp.com:dkim,pank.eu:url]; TAGGED_RCPT(0.00)[orgmode]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DMARC_NA(0.00)[zzamboni.org]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: RwQztU4pDB6X Hi Daryl, If it's for display purposes only, you might be able to simply use display substitutions for things to appear the way you want. For example, I use the technique described here: https://pank.eu/blog/pretty-babel-src-blocks.html to replace the begin/end_src strings with symbols. I did a quick test, and it seems that =prettify-symbols-alist= (which is what this code uses) can only replace for a single character, so I was not able to make it display the three backticks, but there might be other techniques that can be used. --Diego On Sun, May 3, 2020 at 6:24 PM Daryl Manning wrote: > > While using C-c C-, is easy enough for insertion and such, I was wondering if there was any way of having org-mode honour markdown conventions for things like code fences and quotes. > > ``` elisp > #+begin_src > #+end_src > > #+begin_quote > #+end_quote > ``` > > being a bit nicer to read with > > ``` go > code block > ``` > as well as > > > And gentlemen in England now-a-bed. > > Shall think themselves accurs'd they were not here, > > And hold their manhoods cheap whiles any speaks. > > That fought with us upon Saint Crispin's day. > > Just curious as to whether that's possible. YMMV before you start debating on whether you think this is a good idea or not... =] > > Of course, I'd want the code highlighting especially to work that way, though... =] Less concerned with whether it works in export modes for the moment, more about display atm. > > thanks! > Daryl. > > > > >