emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using backticks for the inline code delimeter?


From: Matt Price
Subject: Re: Using backticks for the inline code delimeter?
Date: Tue, 20 Apr 2021 09:30:44 -0400



On Wed., Mar. 31, 2021, 3:22 p.m. Timothy, <tecosaur@gmail.com> wrote:

autofrettage <autofrettage@protonmail.ch> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]