Commit Graph

25 Commits

Author SHA1 Message Date
Henrik Lissner
d20ffca78d
tools/magit: minor refactor/reformatting 2018-06-02 10:56:04 +02:00
Henrik Lissner
1dd4076f8d
Handle magit windows w/ fullframe-status-v1
This new default was chosen to keep magit consistent with fullscreen
:app workflows (which work very similarly). It is also more predictable
than the default method.
2018-06-02 10:54:30 +02:00
Henrik Lissner
1ffdf616e8
Hide mode-line in magit windows (experimental) 2018-06-02 10:54:12 +02:00
Henrik Lissner
6d218fc5a0
Consider magit buffers real
So they can be switched to if buried
2018-06-02 10:53:51 +02:00
Henrik Lissner
c5df4e7d2f
tools/magit: remove +hub check around magithub package 2018-06-01 13:40:48 +02:00
Henrik Lissner
bab530ea2e
Revert +hub flag, but disable magithub by default
Must be enabled on a per-project basis. You can change this behavior by
setting +magit-hub-enabled-by-default to non-nil (before magit is
loaded).

Magithub has been made opt-in because:

1. Magithub is imposing, asking the user for a token, especially for
   users who don't use github (much or at all), but may occasionally
   have a project with a github remote.
2. magithub is really slow on first load for medium-to-large repos.
3. It's really easy to enable it through the magithub popup (H C e).
   magithub.enabled is saved into the project's .git/config file, so the
   setting will persist.

Also added a docstring to +magit-hub-features
2018-06-01 11:13:37 +02:00
Henrik Lissner
dff6e44635
tools/magit: gate evil-magit behind evil +everywhere flag 2018-05-31 21:31:29 +02:00
Henrik Lissner
1a28a0c088
tools/magit: gate magithub behind +hub flag
Use +magit-hub-features to customize which features to load. Set it to
`t` to load all features.
2018-05-31 21:30:41 +02:00
Henrik Lissner
3a16b70022
Add +magit/clone command & bind to SPC g C #633
magithub-clone doesn't support full urls, magit-clone doesn't support
user/repo notation. +magit/clone supports both.
2018-05-31 13:59:21 +02:00
Aria
5f3cbeadd0 Fix magithub not loading after magit
I'd have to run a magithub command to get everything to pop up like pull
requests and what not. I think this was an oversight -- just removing
this will still lazyload it, but instead when magit runs!
2018-05-31 11:25:33 +10:00
Henrik Lissner
947fe345c3
Minor, general refactor
In some contexts, map-put is superior to add-to-list.
2018-05-29 15:34:13 +02:00
Henrik Lissner
be9a06b126
tools/magit: add magit-gitflow 2018-05-25 00:53:04 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
39b08b4d05
tools/magit: fix leader key in magit-blame 2018-04-23 17:50:51 -04:00
Benjamin Andresen
8917bc9194 Fix: tools/magit: +magit--kill-buffer function call corrected 2018-04-12 00:41:38 +02:00
Henrik Lissner
460461ef54
tools/magit: clean up after magit more intelligently #506
Ensures magit buffers are cleaned up after magit-status is closed. Will
defer cleanup on process buffers, until the processes have finished.

Also fixes issue where quitting magit will leave leftover windows.
2018-04-08 20:44:40 -04:00
Henrik Lissner
163d0ce70e
tools/magit: don't kill processes 2018-04-04 09:35:39 -04:00
Henrik Lissner
b98e26856d
Add tools/magit/autoload.el 2018-04-04 08:04:54 -04:00
Henrik Lissner
17a3008493
tools/magit: minor refactor; clean up buffers after quitting magit #506 2018-04-04 07:18:37 -04:00
Henrik Lissner
a546c8c92b
tools/magit: remove unnecessary keybinds; integrate ivy; show gravatars 2018-03-30 04:12:52 -04:00
Henrik Lissner
375547d1b3
tools/magit: set magithub-dir sooner (prevent .emacs.d/magithub) 2018-03-28 03:06:51 -04:00
Henrik Lissner
92b1d1d7d0
tools/magit: initialize magithub variables sooner 2018-03-22 06:34:19 -04:00
Henrik Lissner
4576741178
tools/magit: start magit-status-mode in normal mode
Now that evil-collection offers evilified keybinds for magit, this
should be the default.
2018-03-22 06:33:36 -04:00
Henrik Lissner
612efccd72
tools/magit: fix reference to possibly undefined variable #469 2018-03-20 16:01:33 -04:00
Henrik Lissner
f8fa07d668
Move magit from features/version-control to new tools/magit module 2018-03-14 18:33:26 -04:00