unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Minor Mode to make http links clickable?
@ 2010-12-14 16:04 Burton Samograd
  2010-12-15  4:08 ` Kevin Rodgers
       [not found] ` <mailman.6.1292386109.6505.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Burton Samograd @ 2010-12-14 16:04 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I was wondering if anybody knows of a minor-mode that would scan the
buffer and make http (and possibly other) links clickable/openable?

Thanks in advance.

--
Burton Samograd




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

* Re: Minor Mode to make http links clickable?
  2010-12-14 16:04 Burton Samograd
@ 2010-12-15  4:08 ` Kevin Rodgers
       [not found] ` <mailman.6.1292386109.6505.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2010-12-15  4:08 UTC (permalink / raw)
  To: help-gnu-emacs

On 12/14/10 9:04 AM, Burton Samograd wrote:
> I was wondering if anybody knows of a minor-mode that would scan the
> buffer and make http (and possibly other) links clickable/openable?

 From browse-url.el:

;; To display a URL by shift-clicking on it, put this in your ~/.emacs
;; file:
;;      (global-set-key [S-mouse-2] 'browse-url-at-mouse)
;; (Note that using Shift-mouse-1 is not desirable because
;; that event has a standard meaning in Emacs.)

Or use local-set-key, within a major mode hook.

-- 
Kevin Rodgers
Denver, Colorado, USA




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

* Re: Minor Mode to make http links clickable?
       [not found] ` <mailman.6.1292386109.6505.help-gnu-emacs@gnu.org>
@ 2010-12-15 15:05   ` LanX
  0 siblings, 0 replies; 4+ messages in thread
From: LanX @ 2010-12-15 15:05 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

> > I was wondering if anybody knows of a minor-mode that would scan the
> > buffer and make http (and possibly other) links clickable/openable?
>
>  From browse-url.el:
>
> ;; To display a URL by shift-clicking on it, put this in your ~/.emacs
> ;; file:
> ;;      (global-set-key [S-mouse-2] 'browse-url-at-mouse)

well works, but is there an easy way to add a behaviour like in org-
mode?

I.e the hyperref is highlighted by a "mouse over" and a simple mouse-1
does the browse-url?

In Org-mode links have a special text-property  "mouse-face:
highlight" and I think this is achieved by the syntax highlighter.

So the more detailed question is:

  Can a minor mode expand the fontifying procedures of a major mode?

cheers
  Rolf


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

* Re: Minor Mode to make http links clickable?
       [not found] <mailman.8.1292342963.25302.help-gnu-emacs@gnu.org>
@ 2010-12-17 22:58 ` Johan Bockgård
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Bockgård @ 2010-12-17 22:58 UTC (permalink / raw)
  To: help-gnu-emacs

Burton Samograd <burton@userful.com> writes:

> I was wondering if anybody knows of a minor-mode that would scan the
> buffer and make http (and possibly other) links clickable/openable?

goto-address-mode


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

end of thread, other threads:[~2010-12-17 22:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8.1292342963.25302.help-gnu-emacs@gnu.org>
2010-12-17 22:58 ` Minor Mode to make http links clickable? Johan Bockgård
2010-12-14 16:04 Burton Samograd
2010-12-15  4:08 ` Kevin Rodgers
     [not found] ` <mailman.6.1292386109.6505.help-gnu-emacs@gnu.org>
2010-12-15 15:05   ` LanX

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