From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: How to control face for plain links Date: Fri, 16 Dec 2011 07:38:10 -0500 Message-ID: <87mxashetp.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbX3T-0007aG-Hs for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 07:38:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbX3S-0004Tv-0w for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 07:38:27 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:27577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbX3R-0004Tl-VP for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 07:38:25 -0500 In-Reply-To: (Takaaki ISHIKAWA's message of "Fri, 16 Dec 2011 12:09:55 +0900") 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: Takaaki ISHIKAWA Cc: Orgmode Mailing List Takaaki ISHIKAWA writes: > Dear all, > > Hi. > > Does anyone know the best way to disable face for plain links? > > In Japanese sentences, I handle a link without a space, e.g. > > [ja] =E5=85=AC=E5=BC=8F=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AF=E3=80=81http:= //orgmode.org/=E3=81=AB=E3=81=82=E3=82=8A=E3=81=BE=E3=81=99=E3=80=82 > [en] http://orgmode.org/ is the official website. > > When the `org-activate-plain-links' is active, > the overlay with underline will be applied to the end of line. > An org-descriptive-links style (e.g. [[http://a][link]]) has=20 > the same issue when `org-activate-plain-links' is active. > This is probably not comfortable for many Japanese users. > > I therefore comment out a line in org.el as follows: > > org-set-font-lock-defaults, org.el, Line:5773 > --------------------------------------------------- > (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t))) > ; (if (memq 'plain lk) '(org-activate-plain-links)) > (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link t))) > > Any alternative solutions? > > I think a toggle option like `org-toggle-link-display' is needed. Hi, Can't you just customize the face to remove the underline? C-u C-x =3D on a character of the link should show the face used and allow you to customize it to remove the underline. Regards, Bernt