emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: org-icons package
@ 2011-08-19 21:39 Renzo Been
  0 siblings, 0 replies; 5+ messages in thread
From: Renzo Been @ 2011-08-19 21:39 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs-orgmode

Oké Dan,

Understood. That sounds right; to move all the code into the
org-icons.el file. That way the patch is no longer needed, and
org-icons can live in the contrib dir (together with a directory for
the images).

I think its best if I make a fork of your repo. That gives me some
space for working on the code. Once I have made some progress (I won't
be very fast...), I will send you a Pull request.

The changes that you have made until now, are found here:
https://github.com/dandavison/org-devel/tree/org-icons/contrib/org-icons
Right?

Your right, org-icons is a nice way to change the looks of org
buffers. I'll go through the code first, to get an understanding of
what can be done.

Ciao,
Renzo

On 18 August 2011 22:48, Dan Davison <dandavison7@gmail.com> wrote:
> Hi Renzo,
> org-icons needs to be moved into contrib/, hooked in via a lightweight patch
> against org.el, instead of being implemented as a monolithic change to
> org.el. I made a start on that in this branch:
> https://github.com/dandavison/org-devel/tree/org-icons
> but I'm not sure that I got very far. Note that that is a branch in a clone
> of the org repo, as opposed to the org-icons repos which are standalone
> repos and do not contain org.
> I thought org-icons was interesting because it offers the possibility of
> allowing users to make arbitrary superficial changes to org aesthetics. For
> example, the #+begin_src...#+end_src boilerplate is rather heavy for some
> peoples' tastes. At one point I had it replacing that with a little (ruby,
> snake) for (ruby, python) code... But I think it also allows the possibility
> of overlaying with text. I'd be happy to give you push access to that repo,
> but, you may as well just fork it as I have no plans to work on it.
> I don't know how to contact Nicolas. I believe that he is on record as
> saying he did not plan to develop org-icons further.
> Good luck,
> Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: org-icons package
@ 2011-08-18 20:13 Renzo Been
  2011-08-18 20:48 ` Dan Davison
  0 siblings, 1 reply; 5+ messages in thread
From: Renzo Been @ 2011-08-18 20:13 UTC (permalink / raw)
  To: emacs-orgmode, dandavison7, nicolas.girard

[-- Attachment #1: Type: text/plain, Size: 3966 bytes --]

Hi Dan, Nicolas and list,

In my previous mail I wrote about using (and upgrading it for use with the
latest version of org-mode) Nicolas Girard's org-icons package, see:
http://news.gmane.org/find-root.php?group=gmane.emacs.orgmode&article=44834

I've tried to contact Nicolas Girard (via e-mail and a google search). But I
have not heard back from him as yet.

When I checked the github for org-icons again I discovered that there was a
second branch by Dan Davison.
https://github.com/ngirard/org-icons/tree/dan

Dan,

Do you know how I can get in contact with Nicolas? Or do you have access to
the github for org-icons, so that it's code can be updated to work with the
latest version of org-mode? Did you and Nicolas ever think about including
org-icons into org-mode?

As for me, I'm happily using org-icons with org-mode 7.7, I've attached a new
and updated patch file that works on the latest org.el

Copy the patch "org-icons.patch" to the directory where you keep your "org.el"
cd to that directory
And then apply the patch like this:
patch -b org.el org-icons.patch

Of-course, if neither of you has the time to work on org-icons... I could make
a fork of the git repo, and make the changes myself. However, I do not have
much elisp knowledge...

Ciao,
Renzo

On 25 July 2011 12:12, Renzo Been <swangdoodles@gmail.com> wrote:
> Bastien <bzg <at> altern.org> writes:

>> Hi Philipp,

>> Philipp Haselwarter <philipp.haselwarter <at> gmx.de> writes:

>> > Is there any particular reason for it to be hardcoded? Apart from the
>> > fact that /well it just is this way right now/ I mean.

>> Nothing carved in stone, but here are the two reasons I see:

>> - we don't want users to use arbitrary regexp to match headlines as they
>>   are very likely to shoot themselves in the foot (Harven's example of
>>   using "-" instead of "*" is a good example of that.)

>> - Given this, I am not able to imagine a good way of limiting the number
>>   of allowed characters.

>> > That'd be useful information for anyone interested in changing it.

>> I'd interested in any solution to the problems above.

>> > Then
>> > you can still just tell them to write a patch if they care that much
>> > ('cause even in org-mode-land patches don't write themselves just yet)

>> :)

>> > [I just had the most awesome idea for a feature request].

>> Please share!

>> > If it's "just" about inheriting from a variable in some 300 places it
>> > could at least be discussed.

>> Yep -- if you have the energy to go through the code and see where it is
>> hardcoded while it should not, please do.

>> Thanks,

> Hi,

> I was just thinking... If you want to change the "look" of the
> org-headlines. Does one really need to change the code?

> I have been using Nicolas Girard's org-icons package for quite a while. And
> that makes org-buffers look pretty nice. You can even customise the icons, to
> make it look the way you want.

> However, some things about the org-icons package... It seems to be a little
> outdated.  Are there many org-moders out there still using it?  Were there
> ever any plans to include it in the org-distribution? Right now it needs to be
> installed by hand, because the patch to org.el is outdated...  Also, I need to
> load it two times in my .emacs before the icons work...

> Ciao,
> Renzo

> The org-icons can be found here:
> Download from Nicolas Girard's github
> http://github.com/ngirard/org-icons
> On the Worg site I could only find screenshots, no other information...
> http://orgmode.org/worg/org-screenshots.html
> The list-message announcement for org-icons
> http://news.gmane.org/find-root.php?message_id=%3c87zl2962um.fsf%40stats.ox.ac.uk%3e
> And some list-messages discussing including the org-icons-patch into org-mode
> http://news.gmane.org/find-root.php?message_id=%3c87zlbx3kvf.fsf%40kassiopeya.MSHEIMNETZ%3e

[-- Attachment #2: ngirard-org-icons-renzo.tar.gz --]
[-- Type: application/x-gzip, Size: 429520 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: how to change the headline starter *
@ 2011-07-14 13:53 harven
  2011-07-14 15:47 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: harven @ 2011-07-14 13:53 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode



----- Mail Original -----
De: "Bastien" <bzg@altern.org>
À: "Darlan Cavalcante Moreira" <darcamo@gmail.com>
Cc: "harven" <harven@free.fr>, emacs-orgmode@gnu.org
Envoyé: Samedi 2 Juillet 2011 11h48:52 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [O] how to change the headline starter *

Hi Darlan,

Darlan Cavalcante Moreira <darcamo@gmail.com> writes:

> I don't think this is possible. The "*" as a headline starter seems to be
> hard-coded in org.

I confirm this is not possible, it's hardcoded in outline-mode, and Org
is derived from this mode.

As this is a FAQ, I added an entry in Worg/org-faq.org

Cheers,

-- 
 Bastien


Sorry for the late response. The "*" as a headline character is not hard-coded
in outline-mode. The headline character can be in fact any regexp, and is
specified in the variable outline-regexp defined in outline.el. Its default
value is "[*\f]+".

It is howewer hard-coded as a "*" e.g. in org-indent.el 
(e.g. in org-indent-initialize), and a change to outline-regexp breaks
org-mode.

BUG. How to reproduce. 
Starting with emacs -Q (this is emacs 23.2 together with org-mode 6.33),
execute in the scratch buffer
(setq outline-regexp "[-\f]+")
so as to use - as the headline starter character in outline mode.
Switch to another buffer, enter the text

- first heading 
-- second heading
   some stuff here

Activate org-mode. M-x org-mode.

Then go to the first heading. TAB folds the text as expected.
Go to the second heading. TAB inserts a TAB instead of folding 
the second heading.

Sincerely,
--
        Harven

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

end of thread, other threads:[~2011-08-19 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 21:39 org-icons package Renzo Been
  -- strict thread matches above, loose matches on Subject: below --
2011-08-18 20:13 Renzo Been
2011-08-18 20:48 ` Dan Davison
2011-08-19 21:50   ` Bastien
2011-07-14 13:53 how to change the headline starter * harven
2011-07-14 15:47 ` Bastien
2011-07-14 19:28   ` Philipp Haselwarter
2011-07-15 10:56     ` Bastien
2011-07-25 10:12       ` org-icons package (was: how to change the headline starter *) Renzo Been
2011-07-27 15:50         ` org-icons package Bastien

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