emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Displaying or linking to definitions of terms?
@ 2012-02-18 17:53 jeremiah.dodds
  2012-02-19 10:30 ` Nicolas Goaziou
  2012-03-02  2:17 ` Samuel Wales
  0 siblings, 2 replies; 4+ messages in thread
From: jeremiah.dodds @ 2012-02-18 17:53 UTC (permalink / raw)
  To: emacs-orgmode

I've done a fair amount of reading (and-rereading) the manual, and
searching around, but my search skills are failing me and org-mode is
flexible enough that I figure that someone has either done this, or
there's something that makes it unnecessary that I don't know of.

I'd like to be able to write a definition of a term, and then be able to
jump to that definition, or see that definition in some way in buffers
where the term occurs. Preferably on a "file can specify a file with
term definitions" or a global scale, but even per-file period would be
awesome.

I imagine something like a block. In pseudo-org-code:

#+begin_definition :term elegant
pleasingly graceful and stylish in appearance or manner; pleasingly
ingenious and simple.
#+end_definition

If there's a way for me to acheive the goal of "find the definition for
this term" in a "this is already idiomatic-org" type of way, I'd love to
hear it.

If anyone has done something similar, I'd love to hear about it.

If not, I'd love to implement it, and would be immensely grateful for
any high-level pointers to entry-points for implementation, whether
functions or code files or whatnot.

Thanks for your time, and for all the collective effort put into this
amazingly useful peice of software.

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

* Re: Displaying or linking to definitions of terms?
  2012-02-18 17:53 Displaying or linking to definitions of terms? jeremiah.dodds
@ 2012-02-19 10:30 ` Nicolas Goaziou
  2012-02-19 21:49   ` jeremiah.dodds
  2012-03-02  2:17 ` Samuel Wales
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2012-02-19 10:30 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

jeremiah.dodds@gmail.com writes:

> I've done a fair amount of reading (and-rereading) the manual, and
> searching around, but my search skills are failing me and org-mode is
> flexible enough that I figure that someone has either done this, or
> there's something that makes it unnecessary that I don't know of.
>
> I'd like to be able to write a definition of a term, and then be able to
> jump to that definition, or see that definition in some way in buffers
> where the term occurs. Preferably on a "file can specify a file with
> term definitions" or a global scale, but even per-file period would be
> awesome.
>
> I imagine something like a block. In pseudo-org-code:
>
> #+begin_definition :term elegant
> pleasingly graceful and stylish in appearance or manner; pleasingly
> ingenious and simple.
> #+end_definition
>
> If there's a way for me to acheive the goal of "find the definition for
> this term" in a "this is already idiomatic-org" type of way, I'd love to
> hear it.
>
> If anyone has done something similar, I'd love to hear about it.

There are probably a lot of ways to achieve this with included tools.
For example, on a per file basis, you may use radio targets:

#+begin_src org
Contempt for happiness is usually contempt for other people's happiness,
and is an elegant hatred for the human race.

* Definitions

  - <<<elegant>>> :: pleasingly graceful and stylish in appearance or
                     manner; pleasingly ingenious and simple.
#+end_src

Note that you have to activate <<<elegant>>> radio target the first time
you introduce it (with C-c C-c), but present and future radio targets
will be liked to it automatically.


Regards,

-- 
Nicolas Goaziou

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

* Re: Displaying or linking to definitions of terms?
  2012-02-19 10:30 ` Nicolas Goaziou
@ 2012-02-19 21:49   ` jeremiah.dodds
  0 siblings, 0 replies; 4+ messages in thread
From: jeremiah.dodds @ 2012-02-19 21:49 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> There are probably a lot of ways to achieve this with included tools.
> For example, on a per file basis, you may use radio targets:
>
> #+begin_src org
> Contempt for happiness is usually contempt for other people's happiness,
> and is an elegant hatred for the human race.
>
> * Definitions
>
>   - <<<elegant>>> :: pleasingly graceful and stylish in appearance or
>                      manner; pleasingly ingenious and simple.
> #+end_src
>
> Note that you have to activate <<<elegant>>> radio target the first time
> you introduce it (with C-c C-c), but present and future radio targets
> will be liked to it automatically.
>
>
> Regards,

Thanks, I had somehow totally forgot about the '<<<item>>>' targets,
they'll probably serve my purposes for the time being.

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

* Re: Displaying or linking to definitions of terms?
  2012-02-18 17:53 Displaying or linking to definitions of terms? jeremiah.dodds
  2012-02-19 10:30 ` Nicolas Goaziou
@ 2012-03-02  2:17 ` Samuel Wales
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Wales @ 2012-03-02  2:17 UTC (permalink / raw)
  To: emacs-orgmode

> I'd like to be able to write a definition of a term, and then be able to
jump to that definition, or see that definition in some way in buffers
where the term occurs. Preferably on a "file can specify a file with
term definitions" or a global scale,

One option is to have an entry for the word, and link to it using an
Org-ID link.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

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

end of thread, other threads:[~2012-03-02  2:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18 17:53 Displaying or linking to definitions of terms? jeremiah.dodds
2012-02-19 10:30 ` Nicolas Goaziou
2012-02-19 21:49   ` jeremiah.dodds
2012-03-02  2:17 ` Samuel Wales

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).