emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* clickable text in org-mode not working
@ 2012-11-12 18:42 John Kitchin
  2012-11-13  8:50 ` Sebastien Vauban
  0 siblings, 1 reply; 2+ messages in thread
From: John Kitchin @ 2012-11-12 18:42 UTC (permalink / raw)
  To: emacs-orgmode

It appears that one cannot define "clickable" text in org-mode. I was
trying to make some text in an org-file respond to different types of
clicking. I know that links provide some functionality for this, but
out of curiosity I wanted to see what else I could do.

If I run the following code on a buffer in text-mode, the first four
characters in the buffer turn blue with a white background, they turn
a light green when the mouse is over them, and finally a message box
pops up when I click on the characters.

(let ((map (make-sparse-keymap)))
     (define-key map (kbd "<down-mouse-1>")
            '(lambda() (interactive) (message-box "it works!")))
     (add-text-properties 1 5 `(keymap, map
                                font-lock-face (:foreground "blue"
                                                :background "white")
                                mouse-face highlight)))

If I switch to org-mode, the clickability and mouse highlighting go
away. They also do not appear when I run the function in an

Does anyone know if there is a feature in org-mode that turns this
off, or if there is a way to get the clickability to work? Is it
related to having links that are clickable?



John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213

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

end of thread, other threads:[~2012-11-13  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-12 18:42 clickable text in org-mode not working John Kitchin
2012-11-13  8:50 ` Sebastien Vauban

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


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