ryuslash/mode-icons

Request Projectile icon

eflanigan00 opened this issue · 10 comments

Right now projectile appears like this:
Projectile[my_directory]

Even if there were no icon a simple
P[my_directory] would be great to reduce the amount of space

Hey, thanks for the bug report. I don't know of any icon used to represent projectile, so if you have a suggestion please let me know.

If all you want is to change the projectile mode line lighter you should look at projectile-mode-line. Mine is currently set to:

(setq projectile-mode-line
      '(:eval
        (if (file-remote-p default-directory)
            " P"
          (let ((name (projectile-project-name)))
            (if (string= "-" name)
                ""
              (format " P[%s]" name))))))

Which shows P[my_directory] when a project is loaded, just P when using tramp (not tested, I don't use tramp that way) and nothing if no project is loaded.

Does this help?

Thank you very much, worked perfectly!
I wonder if it is worth requesting an icon from projectile?

Have you tried this with emacs 25.1 with daemon mode?

I'm getting:

Wrong type of argument: number-or-marker-p, nil

Thanks,

Ed


From: Tom Willemse notifications@github.com
Sent: Wednesday, November 9, 2016 1:29 PM
To: ryuslash/mode-icons
Cc: eflanigan00; Author
Subject: Re: [ryuslash/mode-icons] Request Projectile icon (#43)

Hey, thanks for the bug report. I don't know of any icon used to represent projectile, so if you have a suggestion please let me know.

If all you want is to change the projectile mode line lighter you should look at projectile-mode-line. Mine is currently set to:

(setq projectile-mode-line
'(:eval
(if (file-remote-p default-directory)
" P"
(let ((name (projectile-project-name)))
(if (string= "-" name)
""
(format " P[%s]" name))))))

Which shows P[my_directory] when a project is loaded, just P when using tramp (not tested, I don't use tramp that way) and nothing if no project is loaded.

Does this help?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/43#issuecomment-259517827, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWQxZxktWCWU0vzOmFCItBq5PCUkakZQks5q8i0NgaJpZM4Kt8KM.

I'm using the given example with Emacs built from the master branch (last saturday) and the latest projectile from melpa. And yes, in daemon mode.

Ok, I'm on an older setup which might be my problem.

Great work creating the package, thank you very much!!

--Ed


From: Tom Willemse notifications@github.com
Sent: Wednesday, November 9, 2016 5:06 PM
To: ryuslash/mode-icons
Cc: eflanigan00; Author
Subject: Re: [ryuslash/mode-icons] Request Projectile icon (#43)

I'm using the given example with Emacs built from the master branch (last saturday) and the latest projectile from melpa.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/43#issuecomment-259563237, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWQxZ57_B-lWUzrVNaCc0s3pJPYgdlULks5q8mAJgaJpZM4Kt8KM.

I would be surprised if it didn't work on Emacs 25.1. Have you tried using this code with debug-on-error turned on?

Great work creating the package, thank you very much!!

Thanks, but the credit goes to @mattfidler by now, I haven't used or developed this package in quite a while, I'm not sure any of my code still survives. He made my experiment into something people actually use.

Thanks @ryuslash . I have been quite busy recently so have been ignoring emacs things ☹️

Can we add this for the anaconda-mode icon:
https://github.com/proofit404/anaconda-mode/blob/master/static/logo.png

I can try to convert it to the proper format if you let me know what you need.

An xpm 16x16 would be best. Would you do that for me?

I will give it a try!

Get Outlook for Androidhttps://aka.ms/ghei36

On Thu, Nov 10, 2016 at 7:21 PM -0600, "Matthew Fidler" <notifications@github.commailto:notifications@github.com> wrote:

An xpm 16x16 would be best. Would you do that for me?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/43#issuecomment-259856512, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWQxZwYveYiA6VHzGysQftY-KbkhDHJKks5q88L8gaJpZM4Kt8KM.