Doom-emacs: Make Magit more compact / fancy?

Created on 2 Apr 2018  路  5Comments  路  Source: hlissner/doom-emacs

Hey,

by default the magit log looks like the following:
normal view

Using inspiration / code from other blogs I've modified it to look like this:
compact view

Is this something you want to include in the vcs module? As this has the best effect when the project you're viewing is adhering to a specific standard for commit messages then this yields the IMO best effect:

Normal:
normal
Fancy:
full log example

Discussion welcome. I've noticed some new magit behavior with the branch color, so this is not yet fully ready it seems. But I think it's quite nice, especially if origin doesn't automatically translate to github.

P.S. I also have some code that forces me to adhere to the commit style. Also not yet production ready.

:tools magit new interface archived nofix

Most helpful comment

I might be in the minority on this, but I personally find this look quite distracting and would not consider this an improvement. Making it optional is perfectly fine, I don't think it makes a great default imho.

All 5 comments

RE: P.S.
I had to redo the way it works. It seems to be an unsupported interaction between the various modes.

But this is how it looks like:
gfycat
(click for playback controls)

that fancy screenshot looks lovely. Nice work! Can you link some details on what git commit style's you're following to achieve this?

It was all inspired by this blog post: http://www.modernemacs.com/post/pretty-magit/
Initially I also took the code from there but I changed it around a bit to for example allow the remotes to identify if they are gitlab, github, bitbucket or other.

Also see the HN discussion linked at the bottom for a discussion.
And AngularJS's git commit message conventions.

I imagine this could be a module option for magit. With a statement like

(doom! :tools (magit +fancy))

we could get an optional fancy interface.

I might be in the minority on this, but I personally find this look quite distracting and would not consider this an improvement. Making it optional is perfectly fine, I don't think it makes a great default imho.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gilbertw1 picture gilbertw1  路  3Comments

randomizedthinking picture randomizedthinking  路  3Comments

Ptival picture Ptival  路  3Comments

luisenrike picture luisenrike  路  3Comments

idoo picture idoo  路  3Comments