Ihor Radchenko writes:
> C-c C-x , is actually not available (it is bound to timer).
> I went with C-c C-x s.
>
> See the attached patch.
Applied onto main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5bc5add32
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn
c 2022 12:30:36 +0300
Subject: [PATCH] lisp/org-keys.el: Provide terminal binding for
`org-insert-structure-template'
* lisp/org-keys.el (or): Add alternative terminal binding for
`org-insert-structure-template'. The default binding may not be
available in some terminals.
* doc/org-manual.o
Anthony Carrico writes:
> I'm trying to remember what the old keybinding was before it got switched to
> 'C-c C-,'...
IIRC there wasn't one.
Previously, a completely different system was used for adding these
templates and it was bound to < (or was it >, I cannot remember).
The problem
Anthony Carrico writes on Mon 12 Dec 2022 09:41:
> On 12/12/22 09:20, alain.coch...@unistra.fr wrote:
> > Perhaps you have in min >
> >'<', followed by a template selector and '
>
> Yes!
> Was this deprecated because it isn't a regular emacs keybinding?
I don't remember. It was
On 12/12/22 09:20, alain.coch...@unistra.fr wrote:
Perhaps you have in min >
'<', followed by a template selector and '
Yes! I didn't realize that could be enabled. I trained myself not to
rely on this when the new keybinding came. Only recently did I realize
the reason the new keybinding
On 12/12/22 09:04, Ihor Radchenko wrote:
Note that we have alternative key bindings for TTY. See
`org-use-extra-keys'.
The general pattern is C-c C-x . Maybe we can add "C-c C-x ,"?
Thanks, that is probably a good pattern to use. I'll look into
org-use-extra-keys. This is the only keybinding
Anthony Carrico writes on Mon 12 Dec 2022 08:50:
> I'm trying to remember what the old keybinding was before it got
> switched to 'C-c C-,'...
Perhaps you have in mind
'<', followed by a template selector and '
?
See 17.2 Structure Templates:
For example, ‘< s ’ creates a code block.
frustrating? Which keybinding do you use
> for org-insert-structure-template? I don't think I've ever used
> org-priority, so I'll probably just rebind 'C-c ,' to fix the problem.
Note that we have alternative key bindings for TTY. See
`org-use-extra-keys'.
The general pattern is C-c C-x . M
I'm trying to remember what the old keybinding was before it got
switched to 'C-c C-,'...
--
Anthony Carrico
for org-insert-structure-template? I don't think I've ever used
org-priority, so I'll probably just rebind 'C-c ,' to fix the problem.
‘C-c C-,’ (‘org-insert-structure-template’)
Prompt for a type of block structure, and insert the block at
point. If the region is active, it is wrapped
Rudolf Adamkovič writes:
> Ihor Radchenko writes:
>
> I patched a local checkout of the main branch, and I can confirm that
> your works well here. I also added [1] to my configuration file to
> upcase all the structure templates automatically. I hope we will have
> this bundled with Org
Ihor Radchenko writes:
I patched a local checkout of the main branch, and I can confirm that
your works well here. I also added [1] to my configuration file to
upcase all the structure templates automatically. I hope we will have
this bundled with Org proper. Fantastic work!
[1] Code that
00
Subject: [PATCH] Auto-Upcase/downcase #+begin/#+end in structure templates
* lisp/org-tempo.el (org-tempo-add-block):
* lisp/org.el (org-insert-structure-template): When inserting
#+begin_type/#+end_type, follow type's case. TYPE will become
#+BEGIN_TYPE and type will become #+bein_type.
(org-ins
Ihor Radchenko writes:
> We can auto-magically determine whether to use BEGIN_ or begin_
> depending on the case in template type. Tentative patch attached.
Interesting!
> +with \"#+begin_\" and \"#+end_\" added automatically. If the block
> +type is written using upper case letter,
Rudolf Adamkovič writes:
> Inspired by Protesilaos Stavrou, I started using uppercase Org keywords.
> I like the results so far, but I also noticed some inflexibility in the
> Org mode. Specifically, the `org-insert-structure-template' procedure
> hard-codes lowercase "begin_&q
.
Hello smart people!
Inspired by Protesilaos Stavrou, I started using uppercase Org keywords.
I like the results so far, but I also noticed some inflexibility in the
Org mode. Specifically, the `org-insert-structure-template' procedure
hard-codes lowercase "b
Also works for me, Org version 9.5.
Could it be that just the keybinding got un/redefined somehow? Have you
tried running M-x org-insert-structure-template?
--Diego
On Wed, Jan 27, 2021 at 10:45 PM wrote:
> On Wed, Jan 27, 2021 at 09:29:14PM +, JRSS wrote:
> > Hi,
> >
&g
On Wed, Jan 27, 2021 at 09:29:14PM +, JRSS wrote:
> Hi,
>
> This has been missing for a while for me and I recently checked the manual.
> It seems like org-insert-structure-template doesn't exist. I tried Emacs -q,
> same thing. I also loaded org-tempo, thought it has
Hi,
This has been missing for a while for me and I recently checked the manual. It
seems like org-insert-structure-template doesn't exist. I tried Emacs -q, same
thing. I also loaded org-tempo, thought it has something to do with it, but
nothing.
How do I activate is so that C-c C-, works?
Nicolas Goaziou writes:
>> Second question: I couldn't find any configuration variable or
>> function to change the default behaviour. Is there a way to do so?
>
> You can customize `org-structure-template-alist'. I don't remember if
> that's possible in Org 9.1.9, tho.
>
But you cannot change
On Wed, Jul 08, 2020 at 03:04:38PM +0200, Guillaume MULLER wrote:
> Hi,
>
> Thanks for Org-mode. This is really THE software I needed! I LOVE everything
> about it! This is the only piece of software I know of that really designed
> by users for users, with users & efficiency in mind!
>
> I'm
Hello,
Guillaume MULLER writes:
> In ALL the documentation pages I read, the snippets are written in
> uppercase (i.e. #+BEGIN_SRC, like in the main documentation for this
> feature: https://orgmode.org/org.html#Structure-Templates). I would
> myself prefer to have the templates inserted in
Hi,
Thanks for Org-mode. This is really THE software I needed! I LOVE everything
about it! This is the only piece of software I know of that really designed by
users for users, with users & efficiency in mind!
I'm using GNU Emacs 26.3, with built-in org 9.1.9.
When I try to automatically
Hello,
Allen Li writes:
> That's very interesting. Perhaps this is too invasive, but maybe C-c
> C-, should do C-c ' automatically?
No, it shouldn't. You can also create non-verbatim blocks, e.g. "center"
with C-c C-,. There C-c ' doesn't do anything useful.
Regards,
--
Nicolas Goaziou
On Tue, Oct 2, 2018 at 2:14 PM Bernt Hansen wrote:
>
> Nicolas Goaziou writes:
>
> > Hello,
> >
> > Allen Li writes:
> >
> >> org-insert-structure-template (C-c C-,) leaves point at an inconvenient
> >> place (X marks the spot):
> &g
Nicolas Goaziou writes:
> Hello,
>
> Allen Li writes:
>
>> org-insert-structure-template (C-c C-,) leaves point at an inconvenient
>> place (X marks the spot):
>>
>> #+begin_example
>> X#+end_example
>>
>> My expectation is that right after
On Tue, Oct 2, 2018 at 8:06 AM Nicolas Goaziou wrote:
>
> Hello,
>
> Allen Li writes:
>
> > org-insert-structure-template (C-c C-,) leaves point at an inconvenient
> > place (X marks the spot):
> >
> > #+begin_example
> > X#+end_example
> &g
Hello,
Allen Li writes:
> org-insert-structure-template (C-c C-,) leaves point at an inconvenient
> place (X marks the spot):
>
> #+begin_example
> X#+end_example
>
> My expectation is that right after inserting the template, I can start
> typing or yank right into it:
org-insert-structure-template (C-c C-,) leaves point at an inconvenient
place (X marks the spot):
#+begin_example
X#+end_example
My expectation is that right after inserting the template, I can start
typing or yank right into it:
#+begin_example
X
#+end_example
Emacs : GNU Emacs 26.1 (build 1
Hello,
stardiviner writes:
> The original text:
>
> ,
> | We define refs the same way we define atoms, but the two are used rather
> differently.
> | Let's take a quick look at how they work below.
> |
> | (def names (ref []))
> |
> | (dosync
> | (ref-set names ["John"])
> | (alter
The original text:
,
| We define refs the same way we define atoms, but the two are used rather
differently.
| Let's take a quick look at how they work below.
|
| (def names (ref []))
|
| (dosync
| (ref-set names ["John"])
| (alter names #(if (not-empty %)
| (conj %
Hello,
stardiviner writes:
> For example:
>
> Region select on:
>
> ENTRYPOINT ["/usr/sbin/nginx"]
>
> When I press =[C-c C-,]= on this region, the region content will be wrapped
> with src block,
> but it deleted the last "]".
>
> This is a bug I think.
Fixed. Thank you.
Regards,
--
For example:
Region select on:
ENTRYPOINT ["/usr/sbin/nginx"]
When I press =[C-c C-,]= on this region, the region content will be wrapped
with src block,
but it deleted the last "]".
This is a bug I think.
--
[ stardiviner ] don't need to convince with trends.
Blog:
Hi
As I learned, unfortunately for me,
org-complete-expand-structure-template is gone and has been
replaced by
org-insert-structure-template
Now I have, for example, the following template via customize
("s" "#+begin_src matlab :results output latex :exports results
:ev
Eric Abrahamsen writes:
> Eric Abrahamsen writes:
>
>> Rasmus writes:
>>
>>> Eric Abrahamsen writes:
>>>
Eric Abrahamsen writes:
> Rasmus writes:
Eric Abrahamsen writes:
> Rasmus writes:
>
>> Eric Abrahamsen writes:
>>
>>> Eric Abrahamsen writes:
>>>
Rasmus writes:
> Kaushal Modi writes:
>
Rasmus writes:
> Eric Abrahamsen writes:
>
>> Eric Abrahamsen writes:
>>
>>> Rasmus writes:
>>>
Kaushal Modi writes:
> On Fri, Dec 15, 2017 at 6:23 AM Rasmus
Eric Abrahamsen writes:
> Eric Abrahamsen writes:
>
>> Rasmus writes:
>>
>>> Kaushal Modi writes:
>>>
On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote:
> The only way it’s "bad"
Eric Abrahamsen writes:
> Rasmus writes:
>
>> Kaushal Modi writes:
>>
>>> On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote:
>>>
The only way it’s "bad" is in the sense it limits the flexibility of
snippets,
the point move to where the
>> language/backend needs to be typed?
>
> When using Org Tempo an extra space is always inserted. It probably
> should only do it with blocks that support arguments, actually. ATM I
> don’t think spaces are inserted when using
> ‘org-insert-s
On Fri, Dec 15, 2017 at 6:23 AM Rasmus wrote:
> The only way it’s "bad" is in the sense it limits the flexibility of
> snippets, like " I can no longer have "
ginal conversation, but in the cases where plain
> source/export blocks are inserted, does the point move to where the
> language/backend needs to be typed?
When using Org Tempo an extra space is always inserted. It probably
should only do it with blocks that support arguments, actually. A
er have "<s" as plain "src" block. Unless, the meaning of
key in org-structure-template-alist is handled differently in the case of
snippet expansion and insertion via org-insert-structure-template.
Rasmus
--
In theory, practice and theory are the same. In practice they are not
Rasmus writes:
> Eric Abrahamsen writes:
>
>> Rasmus writes:
>>
>>> Nicolas Goaziou writes:
>>>
Hello,
Rasmus writes:
> Nicolas, are there any public interfaces to make ox
Eric Abrahamsen writes:
> Rasmus writes:
>
>> Nicolas Goaziou writes:
>>
>>> Hello,
>>>
>>> Rasmus writes:
>>>
Nicolas, are there any public interfaces to make ox export like
interfaces?
>>>
>>> No, there
Rasmus writes:
> Nicolas Goaziou writes:
>
>> Hello,
>>
>> Rasmus writes:
>>
>>> Nicolas, are there any public interfaces to make ox export like
>>> interfaces?
>>
>> No, there isn't. However, Org provides `org-mks'.
>
> Good point. It
Copying this on both Emacs devel and Org mode list. Hopefully this
discussion is eligible for that.
Problem statement: Need to have a pretty interface that shows the available
valid key bindings.
We have something custom developed for Org export interface. Magit has its
own popup interface. I
Nicolas Goaziou writes:
> Hello,
>
> Rasmus writes:
>
>> Nicolas, are there any public interfaces to make ox export like
>> interfaces?
>
> No, there isn't. However, Org provides `org-mks'.
Good point. It isn’t quite as nice as the export dispatcher.
Hello,
Rasmus writes:
> Nicolas, are there any public interfaces to make ox export like
> interfaces?
No, there isn't. However, Org provides `org-mks'.
Regards,
--
Nicolas Goaziou
Hi,
>> Let me know when you want me to do the change to strings.
>
> No time like the present! I don't think there's anything else remaining
> to be done.
One stumbling block is how to input key strings to
org-insert-structure-template. Currently, it employs read-key which
Rasmus <ras...@gmx.us> writes:
> Eric Abrahamsen <e...@ericabrahamsen.net> writes:
>
>> Hello all,
>>
>> Rasmus' org-tempo patch has landed, and it's time to make a few
>> adjustments to org-insert-structure-template: I think we're moving to
>>
Eric Abrahamsen <e...@ericabrahamsen.net> writes:
> Hello all,
>
> Rasmus' org-tempo patch has landed, and it's time to make a few
> adjustments to org-insert-structure-template: I think we're moving to
> string keys in the template alist, rather than character keys,
Let me
Hello all,
Rasmus' org-tempo patch has landed, and it's time to make a few
adjustments to org-insert-structure-template: I think we're moving to
string keys in the template alist, rather than character keys, and also
some people noted that the keybinding "C-c C-x w" is too close to &q
Yes, sure, currently the Git master branch last commit does not support
this new option yet. Hope be added in next patch. Thanks really.
On 11/11/2017 01:34 AM, Eric Abrahamsen wrote:
> "numbch...@gmail.com" writes:
>
>> RT.
>> Hope Org-mode can fix this issue.
> It looks
"numbch...@gmail.com" writes:
> RT.
> Hope Org-mode can fix this issue.
It looks like that option has been obsoleted by
`org-babel-uppercase-example-markers'. I added that in and it compiled
and tested fine, so I guess it's available. I can make that part of the
next patch.
RT.
Hope Org-mode can fix this issue.
[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter: @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
56 matches
Mail list logo