emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Daniel Clemente <n142857@gmail.com>
Cc: Tassilo Horn <tassilo@member.fsf.org>, emacs-orgmode@gnu.org
Subject: Re:  Re: request: face for „...“ at collapsed sections
Date: Mon, 27 Aug 2007 06:13:50 +0200	[thread overview]
Message-ID: <b84cffe3a1b69e7558501854407b5aee@science.uva.nl> (raw)
In-Reply-To: <ae9590aa0708261414q21a0dcagebb7c1c7b10b22f0@mail.gmail.com>


On Aug 26, 2007, at 23:14, Daniel Clemente wrote:

> Hi,
>>
>> I have this in my emacs:
>>
>> ,----
>> | ;;; Making fold markers ("...")  more visible
>> |
>> | (defface selective-display
>> |   '((default :background "lightgrey")
>> |     (((supports :underline "red")) :underline "red"))
>> |   "Face used for fold markers like ...")
>> |
>> | (unless standard-display-table
>> |   (setq standard-display-table (make-display-table)))
>> |
>> | (set-display-table-slot standard-display-table 'selective-display
>> |                         (vconcat (mapcar
>> |                                   (lambda (c)
>> |                                     (make-glyph-code c
>> 'selective-display))
>> |                                   "...")))
>> `----
>>

Ah, this is how to change the font!  Thanks!

>    Wow, that seems a very low-level solution, but it works. I think it
> would be better if org-mode would set the „..." directly with another
> face.

The difference is that this hack works globally, not only in
org-mode.  So if you use outline-minor-mode, for example,
it will also work there.

Org-mode can modify the ellipsis (currently only with a different
string, not with a different face) using the variable `org-ellipsis'.
However, I do recommend using Tassilo's global solution over an
org-mode specific one.

- Carsten

      reply	other threads:[~2007-08-27  4:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-26 17:47 request: face for „...“ at collapsed sections Daniel Clemente
2007-08-26 18:20 ` Carsten Dominik
     [not found] ` <876432gh8k.fsf@baldur.tsdh.de>
2007-08-26 21:14   ` Daniel Clemente
2007-08-27  4:13     ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b84cffe3a1b69e7558501854407b5aee@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).