* How to control face for plain links
@ 2011-12-16 3:09 Takaaki ISHIKAWA
2011-12-16 12:38 ` Bernt Hansen
0 siblings, 1 reply; 7+ messages in thread
From: Takaaki ISHIKAWA @ 2011-12-16 3:09 UTC (permalink / raw)
To: Orgmode Mailing List
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
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] 公式ページは、http://orgmode.org/にあります。
[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
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.
Best regards,
Takaaki Ishikawa
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-16 3:09 How to control face for plain links Takaaki ISHIKAWA
@ 2011-12-16 12:38 ` Bernt Hansen
2011-12-16 22:42 ` Takaaki ISHIKAWA
0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2011-12-16 12:38 UTC (permalink / raw)
To: Takaaki ISHIKAWA; +Cc: Orgmode Mailing List
Takaaki ISHIKAWA <takaxp@ieee.org> 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] 公式ページは、http://orgmode.org/にあります。
> [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
> 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 = on
a character of the link should show the face used and allow you to
customize it to remove the underline.
Regards,
Bernt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-16 12:38 ` Bernt Hansen
@ 2011-12-16 22:42 ` Takaaki ISHIKAWA
2011-12-16 22:44 ` Bernt Hansen
0 siblings, 1 reply; 7+ messages in thread
From: Takaaki ISHIKAWA @ 2011-12-16 22:42 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Orgmode Mailing List
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
Dear Bernt,
Hi. Thank you for your comment!
Could you give me a function name assigned to `C-u C-x ='?
For me, it is `what-cursor-position'.
Best regards,
Takaaki
On 2011/12/16, at 21:38, Bernt Hansen wrote:
> Takaaki ISHIKAWA <takaxp@ieee.org> writes:
>>
>> Does anyone know the best way to disable face for plain links?
>
> Can't you just customize the face to remove the underline? C-u C-x = on
> a character of the link should show the face used and allow you to
> customize it to remove the underline.
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-16 22:42 ` Takaaki ISHIKAWA
@ 2011-12-16 22:44 ` Bernt Hansen
2011-12-17 0:14 ` Takaaki ISHIKAWA
0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2011-12-16 22:44 UTC (permalink / raw)
To: Takaaki ISHIKAWA; +Cc: Orgmode Mailing List
Takaaki ISHIKAWA <takaxp@ieee.org> writes:
> Dear Bernt,
>
> Hi. Thank you for your comment!
> Could you give me a function name assigned to `C-u C-x ='?
> For me, it is `what-cursor-position'.
That's what mine is set to. The C-u just gives it a prefix argument
,----
| C-x = runs the command what-cursor-position, which is an interactive
| compiled Lisp function.
|
| It is bound to C-x =.
|
| (what-cursor-position &optional DETAIL)
|
| Print info on cursor position (on screen and within buffer).
| Also describe the character after point, and give its character code
| in octal, decimal and hex.
|
| For a non-ASCII multibyte character, also give its encoding in the
| buffer's selected coding system if the coding system encodes the
| character safely. If the character is encoded into one byte, that
| code is shown in hex. If the character is encoded into more than one
| byte, just "..." is shown.
|
| In addition, with prefix argument, show details about that character
| in *Help* buffer. See also the command `describe-char'.
`----
-Bernt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-16 22:44 ` Bernt Hansen
@ 2011-12-17 0:14 ` Takaaki ISHIKAWA
2011-12-17 1:00 ` Bernt Hansen
0 siblings, 1 reply; 7+ messages in thread
From: Takaaki ISHIKAWA @ 2011-12-17 0:14 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Orgmode Mailing List
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
Dear Bernt,
I see what you want to say :-)
I tried to set the face of org-link to remove the underline.
But faces for [[http://orgmode.org/][Org]] is also removed.
This is not good :-(
I would like to use "http://orgmode.org" without underline,
and "[[http://orgmode.org/][Org]]" with underline.
Do you have some good ideas?
Best regards,
Takaaki Ishikawa
On 2011/12/17, at 7:44, Bernt Hansen wrote:
>>
>> Could you give me a function name assigned to `C-u C-x ='?
>> For me, it is `what-cursor-position'.
>
> That's what mine is set to. The C-u just gives it a prefix argument
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-17 0:14 ` Takaaki ISHIKAWA
@ 2011-12-17 1:00 ` Bernt Hansen
2011-12-18 4:34 ` Takaaki ISHIKAWA
0 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2011-12-17 1:00 UTC (permalink / raw)
To: Takaaki ISHIKAWA; +Cc: Orgmode Mailing List
Takaaki ISHIKAWA <takaxp@ieee.org> writes:
> Dear Bernt,
>
> I see what you want to say :-)
>
> I tried to set the face of org-link to remove the underline.
> But faces for [[http://orgmode.org/][Org]] is also removed.
>
> This is not good :-(
>
> I would like to use "http://orgmode.org" without underline,
> and "[[http://orgmode.org/][Org]]" with underline.
>
> Do you have some good ideas?
I'm afraid not. I think you need different faces if you want to
distinguish between [[ ]] links and plain http:// links and that's not
currently supported AFAIK.
-Bernt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to control face for plain links
2011-12-17 1:00 ` Bernt Hansen
@ 2011-12-18 4:34 ` Takaaki ISHIKAWA
0 siblings, 0 replies; 7+ messages in thread
From: Takaaki ISHIKAWA @ 2011-12-18 4:34 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Orgmode Mailing List
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Dear Bernt,
Thanks for your comment.
I'll try to make faces.
Best regards,
Takaaki Ishikawa
>> I would like to use "http://orgmode.org" without underline,
>> and "[[http://orgmode.org/][Org]]" with underline.
>>
>> Do you have some good ideas?
>
> I'm afraid not. I think you need different faces if you want to
> distinguish between [[ ]] links and plain http:// links and that's not
> currently supported AFAIK.
>
> -Bernt
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-12-18 4:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 3:09 How to control face for plain links Takaaki ISHIKAWA
2011-12-16 12:38 ` Bernt Hansen
2011-12-16 22:42 ` Takaaki ISHIKAWA
2011-12-16 22:44 ` Bernt Hansen
2011-12-17 0:14 ` Takaaki ISHIKAWA
2011-12-17 1:00 ` Bernt Hansen
2011-12-18 4:34 ` Takaaki ISHIKAWA
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).