Commit graph

160 commits

Author SHA1 Message Date
Henrik Lissner
3622e36c75
Fix 'buffer does not seem to be associated with any file' error
Fixes #2869
Closes #2870
2020-04-10 13:47:41 -04:00
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
Henrik Lissner
2ceac53421
Prevent scrolling on magit refresh & toc-org 2020-04-04 01:27:41 -04:00
Henrik Lissner
566a5c8a32
Bump :tools
krzysztof-magosa/company-ansible@8d1ffbc -> krzysztof-magosa/company-ansible@79dd421
realgud/realgud@2cca776 -> realgud/realgud@94f2835
emacs-lsp/dap-mode@d10e254 -> emacs-lsp/dap-mode@e2086fc
wbolster/emacs-direnv@1f93e3f -> wbolster/emacs-direnv@1daf479
Silex/docker.el@baba7f7 -> Silex/docker.el@a2092b3
editorconfig/editorconfig-emacs@5c67d22 -> editorconfig/editorconfig-emacs@19de0ec
millejoh/emacs-ipython-notebook@b265205 -> millejoh/emacs-ipython-notebook@57e84c6
syohex/emacs-quickrun@55bbe5d -> syohex/emacs-quickrun@50e07e7
jacktasia/dumb-jump@b5185e3 -> jacktasia/dumb-jump@e8e9b0c
magit/magit@55c5c7c -> magit/magit@68b5a13
magit/forge@c2fbce6 -> magit/forge@2e2d26c
alphapapa/magit-todos@ad5663a -> alphapapa/magit-todos@a0e5d1f
charignon/github-review@3fb7cc2 -> charignon/github-review@50c6bcc
syohex/emacs-terraform-mode@6973d1a -> syohex/emacs-terraform-mode@2967e7b
2020-03-27 16:47:11 -04:00
Henrik Lissner
93521ba5be
Prevent "version control data is outdated" prompt
The prompt was too intrusive, so update vc state if buffer is modified
instead.
2020-03-14 22:04:49 -04:00
Henrik Lissner
cb4f9b86c6
Bump :tools magit
magit/magit@c8cd22e -> magit/magit@55c5c7c
magit/forge@0ade907 -> magit/forge@c2fbce6
charignon/github-review@1de2d6d -> charignon/github-review@3fb7cc2
2020-03-06 16:37:57 -05:00
Henrik Lissner
260148f4e9
Bump :tools magit
magit/magit@8cb6cdf -> magit/magit@c8cd22e
magit/forge@fb04716 -> magit/forge@0ade907
emacs-evil/evil-magit@1bfd546 -> emacs-evil/evil-magit@0b79aa3

Fixes #2446
2020-03-02 12:02:49 -05:00
Henrik Lissner
0a9b06ac16
Prevent magit trying to revert non-existent file buffers 2020-02-25 20:23:04 -05:00
Henrik Lissner
5ed8c1db76
Bump :tools magit
magit/magit@57f2d0f -> magit/magit@8cb6cdf
magit/forge@0081afd -> magit/forge@fb04716
2020-02-24 20:49:03 -05:00
Henrik Lissner
2f696ff5c5
Temp fix #2446: yy in magit when evil-want-Y-yank-or-eol 2020-02-24 20:35:59 -05:00
Henrik Lissner
24282a454e
Fix revert-buffer--default error after using magit
It too aggressively tries to revert all buffers, even ones that can't be
reverted.
2020-02-24 19:30:35 -05:00
Henrik Lissner
731e1c503d
Lazily revert affected buffers after magit 2020-02-21 13:40:52 -05:00
Henrik Lissner
c13e7fe7fc
Bump magit, forge, magit-todos & evil-magit
magit/magit@2bdfc4a -> magit/magit@57f2d0f
magit/forge@2833783 -> magit/forge@0081afd
emacs-evil/evil-magit@7223dca -> evil-magit/evil-magit@1bfd546
alphapapa/magit-todos@a64e365 -> alphapapa/magit-todos@ad5663a
2020-02-09 20:40:25 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
3ebdc513f8
Revert 24d804da7 #2415
It was fixed upstream in magit/magit@6bfe8c0
2020-01-24 05:16:09 -05:00
Henrik Lissner
24d804da79
Fix #2415: install magit-section 2020-01-23 17:12:46 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Henrik Lissner
e6638b82a1
Autoload forge-create-{pullreq,issue} 2020-01-04 15:42:04 -05:00
Henrik Lissner
48cd3e0ad0
tools/magit: prevent 'cannot determine magit's version' warnings
By ensuring the advice runs twice.
2019-12-15 23:43:33 -05:00
Alan Brown
ec08acba1e Changed to correct default location
https://git-scm.com/docs/git-credential-cache
2019-12-09 11:45:57 +00:00
Edmund Miller
89f4f9d88f
fix(magit): add bindings for github-review 2019-12-08 13:35:18 -06:00
Edmund Miller
617e46152f
add github-review 2019-12-08 13:34:34 -06:00
Henrik Lissner
44e22b7f80
tools/magit: replace +magit/clone w/ magit-clone
The former no longer works, since ghub's API has changed. Meanwhile, the
magit-clone command has grown in features to match (and surpass)
+magit/clone, so we'll just use that instead.
2019-11-23 01:21:25 -05:00
Henrik Lissner
5e6363f025
tools/magit: invalidate projectile cache on git checkout 2019-10-29 11:36:46 -04:00
Henrik Lissner
54559d567a
tools/magit: hide modeline in magit-popups
Since magit-gitflow still uses the old magit-popups, rather than
transient.
2019-10-25 02:38:15 -04:00
Henrik Lissner
e0469e14c0
Minor refactors & reformatting across the board 2019-10-20 19:57:27 -04:00
Henrik Lissner
7f0ca974e9
tools/magit: free up 0-4 keys for evil & bind g=
- Replaces 0 with g= (magit-diff-default-context)
- Unbinds 1-4 keys so you can use numbered motions in magit buffers
  again
2019-10-20 10:58:52 -04:00
Henrik Lissner
8407af98fd
tools/magit: disable magit-todos by default
This plugin is a source of slowness and occasional bugs. Instead of
enabling it by default, we keep it around for magit-todos-list, which
could replace +ivy/tasks.
2019-10-17 02:53:44 -04:00
Henrik Lissner
19bfb1285d
Fix #1852: magit not restoring wconf when quitting 2019-10-03 16:43:49 -04:00
Henrik Lissner
0e6c015d60
tools/magit: init forge after building emacsql 2019-10-03 11:42:22 -04:00
Henrik Lissner
bad0dba1fc
tools/magit: refactor magit-version advice
Not strictly necessary, but more correct.
2019-09-20 17:18:16 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
70c60e6583
tools/magit: re-enable magit-todos over tramp
Reverts 9ab49be. TRAMP support was added in
alphapapa/magit-todos@a80dace
2019-09-07 19:57:58 -04:00
Henrik Lissner
92c839be02
tools/magit: warn if emacsql fails to build #1751 2019-09-03 15:47:38 -04:00
Henrik Lissner
abc80e43ae
tools/magit: disable magit-todos over TRAMP 2019-09-02 13:14:52 -04:00
Henrik Lissner
ccaf92b0d3
tools/magit: don't kill all magit buffers when quitting one
And mark all outdated buffers, rather than just the ones in the current
workgroup.
2019-08-28 15:22:14 -04:00
Henrik Lissner
9ab49be564
Fix "fatal: no names found" errors on 'doom rebuild'
Some packages that depend on org (like elfeed) will load the built-in
org early in the rebuild/package install process, which causes org to
define org-release and org-git-version, sometimes overwriting our stubs
for it. Without our hack, org call 'git describe' in the org repo in an
attempt to determine the installed version, which won't work in a sparse
clone. To ensure future definitions never overwrite ours, we advise them
as well.

Also moves magit-version hack to its autoload file, for consistency with
org's hacks.
2019-08-07 16:31:45 -04:00
Henrik Lissner
19dd4e8db8
Correct more inline hook defuns 2019-07-28 02:32:25 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
6b5d65b55b
tools/magit: reuse magit-status window
Instead of opening the same buffer in a new window.
2019-07-22 04:01:18 +02:00
Henrik Lissner
060ede0e2e
General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
2019-07-22 02:37:45 +02:00
Henrik Lissner
cbafa6b749
tools/magit: add -r option to magit-pull 2019-07-22 02:37:44 +02:00
Henrik Lissner
a55a71b8ce
tools/magit: recognize ~/.config/git/credential 2019-07-22 02:37:44 +02:00
Henrik Lissner
72f97be86f
tools/magit: magit-save-repository-buffers = nil
Autosaving our buffers can trigger unwanted side-effects, like save
hooks and formatters, which is too magical. Instead, trust the user to
know what they're doing.
2019-07-22 02:30:41 +02:00
Henrik Lissner
ce4b8940ca
tools/magit: revise default window management for magit
The former default display function would strive to open windows below
the current magit window (splitting it), but this would stack and
quickly become cramped. The behavior is now to reuse the same
window *unless* you're opening the process buffer or from the commit
window.
2019-07-22 02:30:41 +02:00
Henrik Lissner
ba26ce39fe
tools/magit: lazily compile emacsql
Prevents the emacsql binary from being built just because you tried
literally anything remotely to do with magit.
2019-07-22 02:30:41 +02:00
Henrik Lissner
b90dede1ab
💥 Replace package.el/quelpa with straight #374
There are a few kinks to iron out, but for the most part it's done. Doom
Emacs, powered by straight. Goodbye gnutls and elpa/quelpa issues.

This update doesn't come with rollback or lockfile support yet, but I
will eventually include one with Doom, and packages will be (by default,
anyway) updated in sync with Doom.

Relevant threads: #1577 #1566 #1473
2019-07-22 02:30:40 +02:00
Henrik Lissner
149b2617b0
💥 revise hook/var fns naming convention (2/2)
This is second of three big naming convention changes. In this commit,
we change the naming conventions for hook functions and variable
functions:

1. Replace the bar | to indicate a hook function with a -h suffix, e.g.

     doom|init-ui -> doom-init-ui-h
     doom|run-local-var-hooks -> doom-run-local-var-hooks-h

2. And add a -fn suffix for functions meant to be set on variables,
   e.g.

     (setq magit-display-buffer-function #'+magit-display-buffer-fn)

See ccf327f8 for the reasoning behind these changes.
2019-07-22 02:30:38 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00