From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Adding text properties to all Org mode links Date: Tue, 10 Sep 2013 12:26:22 +0530 Message-ID: <87hadtdv1l.fsf@gmail.com> References: <20130713134027.GC11006@kuru.dyndns-at-home.com> <878v19j157.fsf@gmail.com> <20130714064125.GH11006@kuru.dyndns-at-home.com> <20130909231542.GN20690@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJHpz-0001mt-JU for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 02:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJHpr-0006nm-6K for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 02:54:11 -0400 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:51666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJHpq-0006ni-Vc for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 02:54:03 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so7154428pbc.16 for ; Mon, 09 Sep 2013 23:54:02 -0700 (PDT) In-Reply-To: <20130909231542.GN20690@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 10 Sep 2013 01:15:42 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org Add salt to taste or cookup your own recipe based on the hints here. (add-hook 'org-mode-hook (lambda nil (setq-local default-text-properties '(point-entered org-link-entered-maybe)))) (defun org-link-entered-maybe (op np) (when (derived-mode-p 'org-mode) ;; (message "In org-link-entered-maybe") (let* ((inhibit-point-motion-hooks t) (ctx (org-element-context))) (when (eq 'link (org-element-type ctx)) (tooltip-show (org-element-property :raw-link ctx) (not 'use-echo-area))))))