Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show git branch #124

Open
chookity-pokk opened this issue Feb 11, 2025 · 6 comments
Open

How to show git branch #124

chookity-pokk opened this issue Feb 11, 2025 · 6 comments

Comments

@chookity-pokk
Copy link

I installed the package and my only setup is

(add-to-list 'load-path "~/.emacs.d/lisp/awesome-tray")
(require 'awesome-tray)
(awesome-tray-mode 1)

Image

Unfortunately I'm not seeing any git information in the tray as seen in the screenshot above. In the screenshot I am currently editing a file that is in a folder using git and I am on a non-master branch.

@manateelazycat
Copy link
Owner

Check awesome-tray-git-command-update-cache

@chookity-pokk
Copy link
Author

Can you provide a bit more guidance? I see the function but I can't call it so I'm not really sure what to do here.

@manateelazycat
Copy link
Owner

awesome-tray-git-command-update-cache can handle branch name, if not, what's your value of (car (vc-git-branches)) ?

@chookity-pokk
Copy link
Author

Running (car (vc-git-branches)) gives me the branch name.

@manateelazycat
Copy link
Owner

@chookity-pokk If vc-git-branches works, you can't see git branch info in awesome-tray area?

@chookity-pokk
Copy link
Author

Correct. vc-git-branches is working but awesome-tray doesn't seem to be working. I even did it with emacs -q and only enable awesome-tray but it still doesn't show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants