emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Simple but repetitive http links
@ 2022-09-07 13:05 Perry Smith
  2022-09-07 13:45 ` William Denton
  2022-09-07 13:49 ` Christian Moe
  0 siblings, 2 replies; 4+ messages in thread
From: Perry Smith @ 2022-09-07 13:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

I'm new to Org mode.  I found this page
https://orgmode.org/manual/Link-Abbreviations.html about Link
Abbreviations but I wanted to report my confusion.

I added:

#+LINK: rails  https://rubyonrails.org

to my org file and then I wrote [[rails][Rails]] and when I clicked
the text, it asked me if I wanted to create a section.  I had to kill
the buffer and reload it to get it to work.  That's fine but I'm
wondering if there is a way to make it active without killing the
buffer.  And I also wanted to suggest adding something about that in
the manual.

Perhaps this is a common fact with many of Org modes features that I
missed somewhere?

Thank you for your time,
Perry


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple but repetitive http links
  2022-09-07 13:05 Simple but repetitive http links Perry Smith
@ 2022-09-07 13:45 ` William Denton
  2022-09-07 13:49 ` Christian Moe
  1 sibling, 0 replies; 4+ messages in thread
From: William Denton @ 2022-09-07 13:45 UTC (permalink / raw)
  To: Perry Smith; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

On 7 September 2022, Perry Smith wrote:

> I added:
>
> #+LINK: rails  https://rubyonrails.org
>
> to my org file and then I wrote [[rails][Rails]] and when I clicked
> the text, it asked me if I wanted to create a section.  I had to kill
> the buffer and reload it to get it to work.  That's fine but I'm
> wondering if there is a way to make it active without killing the
> buffer.  And I also wanted to suggest adding something about that in
> the manual.
>
> Perhaps this is a common fact with many of Org modes features that I
> missed somewhere?

To tell Org about new keywords like that you need to hit C-c C-c on the keyword 
(or restart).  This is in "The Very Busy C-c C-c Key" in the manual,¹ and 
"Summary of In-Buffer Settings," but the manual is dense and it's easily 
overlooked.

However, as a general rule, if you ever want something to happen in Org, try 
hitting C-c C-c on the line and it probably will.

Welcome to Org!

Bill

¹ https://orgmode.org/org.html#The-Very-Busy-C_002dc-C_002dc-Key

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple but repetitive http links
  2022-09-07 13:05 Simple but repetitive http links Perry Smith
  2022-09-07 13:45 ` William Denton
@ 2022-09-07 13:49 ` Christian Moe
  2022-09-07 16:40   ` George Mauer
  1 sibling, 1 reply; 4+ messages in thread
From: Christian Moe @ 2022-09-07 13:49 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

Org scans the file for link definitions when you visit it, so when you
type in the link definition in the buffer, Org is not automatically
aware that it exists. To refresh setup without reloading the file, you
can `C-c C-c' with point on the line with the definition. That should do
it.

Also, if you don't particularly need or like the behavior of querying
for creating a new headline when none is found, you can turn it off by
customizing org-link-search-must-match-exact-headline to nil (the default is
'query-to-create).

Yours,
Christian

Perry Smith writes:

> I'm new to Org mode.  I found this page
> https://orgmode.org/manual/Link-Abbreviations.html about Link
> Abbreviations but I wanted to report my confusion.
>
> I added:
>
> #+LINK: rails  https://rubyonrails.org
>
> to my org file and then I wrote [[rails][Rails]] and when I clicked
> the text, it asked me if I wanted to create a section.  I had to kill
> the buffer and reload it to get it to work.  That's fine but I'm
> wondering if there is a way to make it active without killing the
> buffer.  And I also wanted to suggest adding something about that in
> the manual.
>
> Perhaps this is a common fact with many of Org modes features that I
> missed somewhere?
>
> Thank you for your time,
> Perry


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple but repetitive http links
  2022-09-07 13:49 ` Christian Moe
@ 2022-09-07 16:40   ` George Mauer
  0 siblings, 0 replies; 4+ messages in thread
From: George Mauer @ 2022-09-07 16:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]

Also worth mentioning that revert-buffer is your go to "kill buffer and
reopen" command

On Wed, Sep 7, 2022, 08:51 Christian Moe <mail@christianmoe.com> wrote:

>
> Hi,
>
> Org scans the file for link definitions when you visit it, so when you
> type in the link definition in the buffer, Org is not automatically
> aware that it exists. To refresh setup without reloading the file, you
> can `C-c C-c' with point on the line with the definition. That should do
> it.
>
> Also, if you don't particularly need or like the behavior of querying
> for creating a new headline when none is found, you can turn it off by
> customizing org-link-search-must-match-exact-headline to nil (the default
> is
> 'query-to-create).
>
> Yours,
> Christian
>
> Perry Smith writes:
>
> > I'm new to Org mode.  I found this page
> > https://orgmode.org/manual/Link-Abbreviations.html about Link
> > Abbreviations but I wanted to report my confusion.
> >
> > I added:
> >
> > #+LINK: rails  https://rubyonrails.org
> >
> > to my org file and then I wrote [[rails][Rails]] and when I clicked
> > the text, it asked me if I wanted to create a section.  I had to kill
> > the buffer and reload it to get it to work.  That's fine but I'm
> > wondering if there is a way to make it active without killing the
> > buffer.  And I also wanted to suggest adding something about that in
> > the manual.
> >
> > Perhaps this is a common fact with many of Org modes features that I
> > missed somewhere?
> >
> > Thank you for your time,
> > Perry
>
>

[-- Attachment #2: Type: text/html, Size: 2196 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-07 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 13:05 Simple but repetitive http links Perry Smith
2022-09-07 13:45 ` William Denton
2022-09-07 13:49 ` Christian Moe
2022-09-07 16:40   ` George Mauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).