Commit Graph

330 Commits

Author SHA1 Message Date
Atemu d6c3482663
compleseus: disable ido and respect minibuffer binds evilification setting (#15710)
* compleseus: disable ido-mode when vertico and selectrum are used

ido would inject inself instead of the regular `find-file' but if these are
activated, we actually want the regular `find-file'.

* core: provide minibuffer evilification predicate

Many different layers need to decide whether to evilify their minibuffer maps.
Provide a single function that puts the logic in one place.

* compleseus: only evilify minibuffer binds when desired
2022-08-27 10:46:04 +02:00
Maxi Wolff 4c9cd947a0
Remove depreciated github layer
and ignore flycheck_packages temp files
2022-07-31 17:26:07 +02:00
Aaron L. Zeng af53045448 [git] Remove magit-git-executable hack, which is no longer needed
magit v3.2.0 now defines `magit-git-executable` as a
function (actually a defsubst), and two separate variables,
`magit-git-executable` and `magit-remote-git-executable`.  On darwin,
magit already sets `magit-git-executable` to the result of
`(executable-find "git")`, so having this is now redundant in
Spacemacs.
2022-06-25 08:56:33 +02:00
Aaron L. Zeng 4eaff25268 [git] Disable evil-surround-mode in all magit modes
This is an extension of #15462.  I noticed that the fix did not apply
to magit-diff buffers, which still had the issue of `s' not being
available to stage diff hunks.  `magit-diff-mode' is the parent mode
of all magit modes, in which evil-surround is not useful, so disabling
there makes the most sense.
2022-06-23 13:36:20 +02:00
Maxi Wolff 44894c7132
[git] Fix forge warning
by setting forge-add-default-bindings to nil
by default.
2022-06-17 16:30:26 +02:00
Lin Sun fa28a4f302 [source-control] Evilify the svn/git/hg mode-maps after its mode file be loaded 2022-06-09 19:21:03 +02:00
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Maxi Wolff 39b9def6d5
Fix variable is void warnings at startup
which were caused by invocing
evilified-state-evilify-map in the init section.
2022-05-29 15:04:18 +02:00
Daniel Nicolai f4b04bcf22 Add obsoletion notification evilified-state-evilify 2022-05-29 14:05:07 +02:00
Aaron L. Zeng f70110dd77 [version-control] Load smerge-mode when entering smerge-transient-state
This fixes the following error when pressing `SPC g r n` if
smerge-mode is not loaded yet:

    Symbol's function definition is void: smerge-vc-next-conflict

Removed the `:commands` argument to use-package, which is
erroneous (:commands sets up autoloads so that invoking the command
will load the package specified, but only if the command is not
already fboundp).

Instead, explicitly load smerge-mode when entering the transient
state, so that any of the key bindings in the transient state will be
available.  This has the same intended effect as the previous code.
2022-05-11 19:23:04 +02:00
John Practicalli 6bdf609421 [git] key bindings to edit magit forge topics
Add Spacemacs style key bindings menu when editing a Magit Forge topic (issue,
pull request)

https://magit.vc/manual/forge.html#Editing-Topics-and-Posts
2022-05-11 19:17:07 +02:00
Dan Kessler 9dd28c0316
disable evil-surround in magit-status buffers (#15462) 2022-04-11 13:28:02 -04:00
SpacemacsBot c2a9aaedff
[bot] "documentation_updates" Mon Mar 28 11:29:34 UTC 2022 (#15433) 2022-03-28 11:38:15 -04:00
John Practicalli cb786cc071 [github] clarify Git configuration and authorisation documentation
Resolve #15377
2022-03-28 13:28:10 +02:00
SpacemacsBot e32acdfadf
[bot] "documentation_updates" Fri Mar 11 06:55:25 UTC 2022 (#15402) 2022-03-11 02:33:47 -05:00
John Practicalli d751c09fab
[git] document configuration of Magit Forge and Git identity (#15388)
Add documentatation to the Spacemacs Git layer describing how to configure basic git identity and more importantly how to configure Magit Forge to access GitHub / GitLab using a machine configuration and an encrypted file to hold the personal access token.
2022-03-11 06:54:23 +00:00
Lucius Hu fd652fae0c
update spacemacs/declare-prefix usages (#15278)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2022-02-04 05:36:11 +00:00
Tim Ruffing 1bd5428360 git-gutter: Remove custom fringe bitmaps
The config for git-gutter currently sets custom fringe bitmaps which
are optimized for half-width fringes.

I think that's an arbitrary choice. There's no spacemacs option which
enables half-width fringes and as far as I can tell, we don't optimize
for half-width fringes anywhere else. So we should optimize the
package defaults for the spacemacs default of full-size fringes.

If users set half-width fringes manually, they can customize the
bitmaps manually. Even if they don't, the bitmaps are still visible,
they just don't look as nice.
2022-01-01 14:41:33 +01:00
Lucius Hu d7f9eb6342 Update minimum supported emacs version to 27.1 2022-01-01 14:32:46 +01:00
Maxi Wolff bdd77bfed6
[version-control] Do not activate git-gutter-mode in pdf-view-mode 2021-11-29 22:48:21 +01:00
Hans dee70b8486
Fix forge evil keybinds (#15167)
* [git] Fix: Evil-collection @-dispatch keybindings for magit forge.

Load new location for forge '@' dispatch keybindings.

'Evil-collection' has moved keymaps for magit forge from an
'with-eval-after-load' block to newfile 'evil-collection-forge.el' in commit
33461aa545.

As mentioned in the commit, these changes were due to a upstream change in the
'forge' package. Source: https://github.com/emacs-evil/evil-collection/issues/543

* [git] Docs: update README to reflect changes in Forge keybinds.

See https://magit.vc/manual/forge.html#Introduction for more information.
2021-11-19 17:52:11 +01:00
Evan Klitzke 66e509f345 Remove helm-gitignore from git layer.
Related to #15117, this removes the helm-gitignore from the git layer because it
hasn't been updated to use the new git-modes package. The helm-gitignore
functionality isn't particularly useful anyway, it's just a utility to help
generate .gitignore files.

This change can be reverted if the upstream helm-gitignore package is fixed and
people find the functionality it provides to be useful.
2021-11-02 21:45:23 +01:00
Lucius Hu f4f8ad8fd7 git: migrate git{attributes,config,ignore}-mode to git-modes 2021-11-02 21:40:54 +01:00
Robert O'Connor ae056660b2 Remove gist.el since it's unmaintained.
Comments out the elisp code but removes the README docs.

Closes #15093
2021-11-02 21:25:39 +01:00
Lin Sun 151ca61df5
[version-control] Switch default version control diff tool to git-gutter
Switch default version control diff tool to git-gutter for original default
git-gutter+ has bugs and no maintain for years.
2021-09-29 21:30:13 +02:00
Maxi Wolff e5a180e78d
[vc] Make smerge ts use emacs version specific functions
this affects smerge-next vs smerge-vc-next-conflict, which
is only available from emacs 27 on, which will check for
conflicts in all open buffers.
2021-09-10 21:38:29 +02:00
Michael Peyton Jones f928c32eec
vc: use smerge-vc-next-conflict instead of smerge-next 2021-09-10 21:17:17 +02:00
Lucius Hu a9ba3b8fe0 git: restore layout when exiting magit buffer
closes https://github.com/syl20bnr/spacemacs/issues/14951

Co-authored-by: Richard Kim <emacs18@gmail.com>
2021-08-25 22:45:06 +02:00
duianto cf21402c5c Revert "Fix which-key entries: gr and gs in dired and magit"
This reverts commit ec57b21a92.

A which-key change caused issues with this fix.
And the fix doesn't seem to be needed anymore.

The correct which-key entries appear without the fix.
2021-06-23 17:33:36 +02:00
Maximilian Wolff af193f769f
[git] Update instructions for global-git-commit-mode 2021-06-09 11:38:15 +02:00
Lucius Hu f0cadad38f
fixup fixup fixup #14715 (#14827)
funcs.el is loaded after packages.el so `spacemacs//support-evilified-buffer-p` is undefined at this point.

moved it inside the `defun` block and it should work.
2021-06-05 15:16:43 +00:00
Lucius Hu d262103b5e
fixup! fixup! #14715 2021-06-05 09:53:23 -04:00
Lucius Hu 1d07f56aed
fixup #14715 (#14826) 2021-06-05 10:08:14 +00:00
Lyall Cooper 5cd56a4668
Only load evil-collection in vim or hybrid mode (#14825)
As described in #9169, when using the emacs editing style the comment inserted at the bottom of a git rebase shows the incorrect key bindings. This is apparently due to `evil-collection` (changing the `git-rebase-mode-hook`)[3ed92cadda/modes/magit/evil-collection-magit.el (L523-L524)].

We can fix the issue by only loading `evil-collection` if we're using an evil-style editing mode.

Closes #9169
2021-06-05 03:44:32 +00:00
Rahul Rameshbabu 8365979326 [perforce] Add p4-shelve and p4-unshelve commands with keybindings
Shelving and unshelving changelists are operations commonly used when
choosing Perforce as a VCS solution. Package consumed by the "perforce"
layer already provides "p4-shelve" and "p4-unshelve" commands that can
be exposed by the layer. Provide keybindings for these two commands as
well.
2021-05-27 22:39:43 +02:00
duianto 917ebbc4cb [version-control] Show bound but unlisted VCS TS key: d
In the VCS Transient State (`SPC g .`)
The key: `d` is bound to: `magit-ediff`
But `d` isn't shown in the VCS TS.
2021-05-17 22:10:11 +02:00
duianto b5fb7d5376 [base] Fix void spacemacs-evil-collection-allowed-list
problem
In the `spacemacs-base` distribution.

When the `git-enable-magit-todos-plugin`
layer variable is enabled.

Then the following message appears on startup:
>An error occurred while pre-configuring magit-todos in layer git (error: (void-variable spacemacs-evil-collection-allowed-list))

cause
The `spacemacs-evil-collection-allowed-list` variable
is assigned in the `git` layer.

But it's defined in the `spacemacs-evil` layer.

The `spacemacs-evil` layer isn't used by default
in the `spacemacs-base` distribution.

solution
Check that the `spacemacs-evil` layer is used
before adding to the variable.
2021-04-15 22:05:35 +02:00
emacspace 95a703b684 documentation formatting: Fri Apr 9 11:56:19 UTC 2021 2021-04-09 21:41:03 +02:00
Maximilian Wolff 9eac85fb6c [git] Add `magit-todo` to `evil-collection` configured packages
thanks goes to duianto for suggesting this move.
2021-04-08 20:46:39 +00:00
Lucius Hu dfb4c1c4cb git: Added `magit-todos`, improved docs, etc.
- Added `magit-todos` package, toggled by `git-enable-magit-todos-plugin`.
- Improved installation and loading of all magit-plugins:
  - All magit plugins are toggled by their corresponding layer variables
    PRE-INSTALLATION, instead of PRE-LOADING. That is, they are installed
    only when the toggle is non nil.
  - The `use-package` call is more specific now.
    - Hooks goes to `:hook`.
    - Removed `:defer` since it's implied by `:hook`, and it's actually not
      doing anything.
- Improved the documentation.
2021-04-08 20:41:24 +00:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Ag Ibragimov 589c16b73a
git: adds orgit-forge so org links can be stored from forge topics (#14450)
* git: adds orgit-forge so org links can be stored from forge topics

* PR feedback

Suggested-by: Lucius Hu <lebensterben@users.noreply.github.com>
2021-03-14 00:26:38 +01:00
Ilya Grigoriev e8976832f8 Restore SPC gfd for magit-diff, set SPC gfm for magit-file-dispatch
Fixes https://github.com/syl20bnr/spacemacs/issues/14434
2021-02-28 20:55:53 +01:00
Ag Ibragimov e3434e8635 source-control: Change SPC gfd to magit-file-dispatch
SPC g f d  key should be more "contextual", allowing user to perform operations
associated with the current file
2021-02-23 14:43:17 +01:00
duianto b6aa0e651f [git] Remove unused evil-magit function
The only usage of the function: spacemacs//magit-evil-magit-bindings
was removed in the PR: [spacemacs-evil] add evil-collection #14200
2021-02-15 10:47:38 +01:00
duianto 3f7e69e0b1 [git][doc] Update magit bindings link
The evil-magit package has been deprecated and moved to:
https://github.com/emacs-evil/evil-collection/tree/master/modes/magit
2021-02-14 19:39:56 +01:00
duianto ec57b21a92 Fix which-key entries: gr and gs in dired and magit
problem:
pressing g shows the which-key entry:
r -> evil-mc

but it calls the expected commands:
revert-buffer (in dired)
magit-refresh

s -> evil-easymotion
but it calls the expected command:
magit-jump-to-staged

solution:
removing the gr and gs which-key entries,
shows the expected commands.
2021-01-30 11:59:18 +01:00
Thanh Vuong a6d364e0f2 [spacemacs-evil] add evil-collection
It is impossible to ignore `evil-collection` anymore. `evil-magit` has been
deprecated recently and moved to `evil-collection`.

It will save time and effort for both Spacemacs and Evil to share and contribute
to `evil-collection` imo.

However I strongly prefer Spacemacs binding scheme over evil-collection's one.
We should only pick what we need from `evil-collection`.

This PR add mechanism to embrace `evil-collection` and apply it to shell layer (`vterm`)
and git layer.
2021-01-30 01:11:07 +00:00
duianto 61ff12cbfc [base] Show a winum required message
problem:
key bindings that use the winum package,
don't work in the spacemacs-base distribution.

for example in the buffer transient state: SPC b .
{number}, C-{number} or M-{number}

shows messages like these:
Wrong type argument: commandp, winum-select-window-1
Symbol’s function definition is void: winum-get-window-by-number

cause:
the winum package is loaded in the spacemacs-navigation layer,
but the layer isn't used in the spacemacs-base distribution.

solution:
show the message:
This command requires the winum package,
winum is part of the spacemacs-navigation layer.
2021-01-09 08:40:32 +01:00