Commit graph

381 commits

Author SHA1 Message Date
Henrik Lissner
98f3af7a7c
feat(vc): browse-at-remote: recognize gitlab.* hosts
Previously, only gitlab.com and gitlab.gnome.org were recognized as
gitlab hosts. This tweaks browse-at-remote to recognize any subdomain
named gitlab.* as a gitlab host (as a fallback, if no other regexp
matches).
2023-07-24 02:58:35 +02:00
Franz Srambical
9fdaa4c3db
docs(undo): unfo-fu -> undo-fu 2023-07-22 23:42:35 +02:00
Michael Peyton Jones
bab4c921c8
tweak(vc): smerge-next -> smerge-vc-next-conflict
This is provided by `smerge-mode` in Emacs 27, and functions exactly
like `smerge-next`, except that if there are no more conflicts in the
current file, it will go to the next file with conflicts.

Arguably this could be a different key binding. However, I find that it
is almost strictly superior to `smerge-next`: I can't think of a case
where I *wouldn't* immediately want to go to the next file with
conflicts, and even if you do by accident you can just pop back to the
preceding buffer. So I think it warrants being the default.

Close: #5431
2023-03-22 18:22:47 -04:00
Henrik Lissner
3ce89731b6
docs(undo): add vundo
Amend: 9350b44dc0
Ref: #6263
2023-03-22 01:23:58 -04:00
Henrik Lissner
512828078f
bump: :emacs undo
emacs-straight/vundo@d78b02ab89 -> emacs-straight/vundo@26c929229a

Ref: #6263
2023-03-22 01:21:04 -04:00
Daniel Levy Moreno
9350b44dc0
feat(undo): add vundo
Close: #6263
2023-03-22 00:26:10 -04:00
troy
b51f743e67 fix(vc): +vc--remote-homepage 2023-02-23 16:39:04 -05:00
Henrik Lissner
5018f938b1
bump: :tools magit
alphapapa/magit-todos@c5030cc27c -> alphapapa/magit-todos@c6f3fd03aa
magit/forge@ce212f8f95 -> magit/forge@ba35ffc9ba
magit/magit@30b0debaaa -> magit/magit@97a95f7007
wandersoncferreira/code-review@95b36ec8e7 -> wandersoncferreira/code-review@26f426e992

- (#6987, #7103) Fixes "wrong-type-argument sequencep #<subr
  code-review-section--magit-diff-insert-file-section>" error when
  starting code-review.

Fix: #6987
Close: #7103
Amend: 29c595ed1b
Co-authored-by: shroomist <shroomist@users.noreply.github.com>
2023-02-22 17:03:11 -05:00
Henrik Lissner
c523cd0e93
fix(vc): browse-at-remote: codeberg support
Incorrect :type caused browse-at-remote to produce the wrong URL for
codeberg repos.

Amend: eed6d90586
2023-02-21 19:14:12 -05:00
Robbert van der Helm
eed6d90586
fix(vc): string type error caused by codeberg support
79736d8 added codeberg.org support to the browse-at-remote package, but
rmuslimov/browse-at-remote@73c4526 (absorbed in 81268cc) changed the
format of this variable, causing "wrong-type-argument: stringp, nil"
errors.

Amend: 81268cc5cf
Ref: rmuslimov/browse-at-remote@73c45265a1
Ref: 79736d832d
2023-02-21 18:32:35 -05:00
Henrik Lissner
79736d832d
feat(vc): add codeberg support to browse-at-remote
This should be PRed upstream later.
2023-02-20 19:00:45 -05:00
Henrik Lissner
81268cc5cf
bump: :emacs
emacs-straight/undo-tree@e326c6135e -> emacs-straight/undo-tree@16f4121032
emacsmirror/git-timemachine@ca09684e94 -> emacsmirror/git-timemachine@d8ffd0d7cc
ideasman42/emacs-undo-fu-session@3e810c7c9a -> ideasman42/emacs-undo-fu-session@7b3fd0647d
ideasman42/emacs-undo-fu@ab8bc10e42 -> ideasman42/emacs-undo-fu@0e22308de8
purcell/ibuffer-vc@5fa6aea09b -> purcell/ibuffer-vc@9204001d1c
rmuslimov/browse-at-remote@cef26f2c06 -> rmuslimov/browse-at-remote@c020975a89

:emacs dired was omitted from this bug because of #6760.
2023-02-20 19:00:44 -05:00
Henrik Lissner
4e3b94c602
tweak(vc): add feedback on +vc/browse-at-remote-kill
Otherwise there's no indication that the command worked, when invoked
interactively.
2023-02-18 15:27:47 -05:00
Samuel Tschiedel
0b921c2d34 bump: :editor dirvish
alexluigit/dirvish@73dcaa404d -> alexluigit/dirvish@4fe9c00894

This "lateral" bump buys us more time until doomemacs/doomemacs#6760 lands.

`dirvish`'s repository apparently rebased the commit we have pinned.
Visiting it gives us:
```
This commit does not belong to any branch on this repository, and may
belong to a fork outside of the repository.
```

Te new pinned version references the same commit contents, but on a new
position. They're correctly identified as identical by git. The new
commit also contains an explicitly reference to the old one:

```
Former-commit-id: 73dcaa4
```

Ref: 73dcaa404d..4fe9c00894
2023-02-18 01:18:36 -05:00
Itai Y. Efrat
29c595ed1b bump: magit compat git-commit
emacs-straight/compat@2bedcb5ea9 -> emacs-straight/compat@01fdf316a4
magit/magit@6d325d90ba -> magit/magit@30b0debaaa
2023-02-17 12:34:58 -05:00
Itai Y. Efrat
642f88ad99 bump: :completion vertico compat consult-lsp magit git-commit
emacs-straight/compat@7ca7d300d1 -> emacs-straight/compat@2bedcb5ea9
mhayashi1120/Emacs-wgrep@f9687c28bb -> mhayashi1120/Emacs-wgrep@edf768732a
minad/consult-flycheck@7a10be316d -> minad/consult-flycheck@51b1b48e8d
minad/consult@16b2dc5e34 -> oantolin/orderless@ae849b3d9f
minad/marginalia@c1365bf0c7 -> minad/marginalia@6d48ed54be
minad/vertico@bedd146c3f -> minad/vertico@f303790546
oantolin/embark@629cce948c -> oantolin/embark@4882b395ce
oantolin/orderless@847694e78c -> minad/vertico@f303790546
tumashu/vertico-posframe@a3d0802d7b -> tumashu/vertico-posframe@790f74b49d
gagbo/consult-lsp@58b5414762 -> gagbo/consult-lsp@f8db3252c0
magit/magit@0ef98ef518 -> magit/magit@6d325d90ba

consult-lsp needed to be bumped to work with some changed consult
internals, and due to compat shenanigans we have to bump magit to latest
as well.

Includes fixes to stay up to date with upstream api changes to.
consult-customize and the deprecation of embark-define-keymap

Close: #7064
2023-02-17 12:34:58 -05:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
0407621aff
refactor: deprecate EMACS2[89]+, NATIVECOMP, MODULES
To reduce redundancy, remove the maintenance hassle that version
constants would impose later on, and rely on built-in
facilities (featurep) more over global variables or doomisms, these
global constants have been deprecated in favor of Emacs "features":

- EMACS28+   -- replace with (> emacs-major-version 27)
- EMACS29+   -- replace with (> emacs-major-version 28)
- NATIVECOMP -- replace with (featurep 'native-compile)
- MODULES    -- replace with (featurep 'dynamic-modules)

(These constants will be formally removed when v3 is released. The IS-*
constants are likely next, but I haven't decided on their substitutes
yet)

I also decided to follow native-compile's example and provide features
for Emacs' system features (since system-configuration-features' docs
outs itself as a poor method to detect features):

- dynamic-modules
- jansson
- native-compile -- this one already exists, but will instead be removed
  if it's non-functional; i.e. (native-comp-available-p) returns nil.

These are now detectable using featurep, which is fast and built-in.
2022-08-14 20:43:35 +02:00
Henrik Lissner
7598485e1a
bump: :emacs vc
magit/magit@846d153a2e -> magit/magit@8a0cc83eff
magit/git-modes@62fbf2e5b8 -> magit/git-modes@eca3bb42ea
https://codeberg.org/pidu/git-timemachine@3381797bcbf9 -> emacsmirror/git-timemachine@ca09684e94

Moved to a git-timemachine mirror because codeberg.org has uptime
issues.
2022-08-10 13:18:34 +02:00
Henrik Lissner
24623f9959
refactor!(dired): move diff-hl config to :ui vc-gutter
BREAKING CHANGE: users who are used to diff-hl displaying diffs in dired
will notice they have vanished. diff-hl's conig has been moved to :ui
vc-gutter +diff-hl (added in 27a448b). Enable it to get it back.

Ref: 27a448b04b
2022-08-09 16:30:43 +02:00
Henrik Lissner
27a448b04b
feat(vc-gutter): add +diff-hl backend
This adds an alternative backend to the :ui vc-gutter module, enabled
with the +diff-hl flag. In the future, I intend for diff-hl to replace
git-gutter, as it is slightly faster and depends on more native
functionality (vc.el), but it's still a little buggy. It will remain
opt-in until those issues are sorted out.
2022-08-08 18:23:47 +02:00
Henrik Lissner
057e6c531c
refactor: replace doom-enlist with ensure-list
doom-enlist is now a deprecated alias for ensure-list, which is built
into Emacs 28.1+ and is its drop-in replacement. We've already
backported it for 27.x users in doom-lib (in 4bf4978).

Ref: 4bf49785fd
2022-08-07 19:43:13 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Daanturo
5974543732 feat(vc): add next conflict in project to +vc/smerge-hydra
new hydra head:
"n" (progn (smerge-vc-next-conflict)
(recenter-top-bottom (/ (window-height) 8)))

Allow us to jump to the next merge conflict in current project without
leaving the hydra and/or opening magit.
2022-08-02 20:38:04 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
4shen0ne
1e6d5c3f65
feat(dired): add +dirvish option
Fix: #6397
2022-06-23 13:47:22 +02:00
Henrik Lissner
8e33d2d04a
refactor(ibuffer): +ibuffer/visit-workspace-buffer 2022-04-06 18:45:06 +02:00
Henrik Lissner
c309e61eff
feat(ibuffer): switch to buffer in its workspace
Adds +ibuffer/visit-workspace-buffer, which will switch to a buffer's
containing workspace before switching to the buffer. This will prompt if
a buffer is present in multiple workspaces. If given the prefix
argument, it will auto-select the first workspace.

Fix: #5061
Close: #5351
Co-authored-by: petr-tik <petr-tik@users.noreply.github.com>
2022-04-03 20:51:54 +02:00
Henrik Lissner
e9c088cf3b
refactor(ibuffer): move workspace functions 2022-04-03 20:51:54 +02:00
p4v4n
0140a419fd
fix(ibuffer): wrong-number-of-args error on ibuffer-find-file w/ ivy 2022-03-19 16:10:52 +01:00
Henrik Lissner
fc868105ce
fix(dired): prevent auto-revert in dired-virtual-mode
dired-virtual-revert (the revert handler for dired-virtual buffers)
simply errors out and prompts the user if they want to switch to a
"real" dired buffer. This isn't helpful the automated nature of
auto-revert, so silence it.
2022-02-14 21:24:46 +01:00
Yaman Qalieh
992660a9df bump: :emacs undo
ideasman42/emacs-undo-fu-session@edf050d613 -> ideasman42/emacs-undo-fu-session@3e810c7c9a

Upstream, ideasman42/emacs-undo-fu-session@edf050d613 was squashed into master. This bump pins to an attached commit.

Ref: 3e810c7c9a
2022-02-09 04:55:14 +01:00
Henrik Lissner
ee33bff115 bump: :emacs
dgutov/diff-hl@6fa3af0843 -> dgutov/diff-hl@4a08b02afe
ideasman42/emacs-undo-fu-session@1810251485 -> ideasman42/emacs-undo-fu-session@edf050d613
magit/magit@1eb183e767 -> magit/magit@846d153a2e
purcell/diredfl@4ca32658ae -> purcell/diredfl@f9140b2c42
2022-02-02 01:56:04 +01:00
Henrik Lissner
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
Anh T Nguyen
8342db4f35 tweak(dired): all-the-icons-dired-monochrome = nil
To be consistent with all-the-icons uses elsewhere.

Ref: #5704
Co-authored-by: Anh T Nguyen <teeann@users.noreply.github.com>
2022-01-28 15:27:33 +01:00
Lele Gaifax
e5213f20e5 nit: fix several documentation typos 2022-01-10 02:21:49 +01:00
Gavin Downard
96390ef3b9 tweak(dired): don't auto-revert when remote
On slow connections `dired-auto-revert-buffer` causes excessive
slowdowns; this limits its behavior to local files.
2022-01-03 18:06:23 +01:00
Henrik Lissner
da5c46595c bump: :tools dired
clemera/dired-git-info@91d57e3a4c -> emacs-straight/dired-git-info@9461476a28

Straight created a mirror for dired-git-info at
emacs-straight/dired-git-info and now prioritizes this over the ELPA
recipe, so old commit won't be found.

Ref: emacs-straight/dired-git-info@9461476a28
Fix: #5913
Close: #5917
Co-authored-by: Aryslan Yakshibaev <yak.aryslan.1999@gmail.com>
2022-01-03 16:51:51 +01:00
Matt Kramer
80bdd2774f bump: :emacs dired
clemera/dired-git-info@9461476a28 -> clemera/dired-git-info@91d57e3a4c
2021-12-18 01:13:20 +01:00
Henrik Lissner
8b8b18448f bump: :emacs
dgutov/diff-hl@40c89a7b0d -> dgutov/diff-hl@6fa3af0843
ideasman42/emacs-undo-fu@34b27c01da -> ideasman42/emacs-undo-fu@ab8bc10e42
magit/magit@aba0a59611 -> magit/magit@1eb183e767
wyuenho/all-the-icons-dired@a758766878 -> wyuenho/all-the-icons-dired@5e9b097f99
2021-12-14 01:21:33 +01:00
Henrik Lissner
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
Henrik Lissner
73c1dd1338 docs(:emacs): update READMEs to new format 2021-11-21 20:04:28 +01:00
Henrik Lissner
df62fcba26 docs: add category readmes 2021-11-21 20:04:28 +01:00
Aleksei Fedotov
b66aaf9e9f
fix(vc): +vc/browse-at-remote in TRAMP buffers
vc-ignore-dir-regexp is configured to ignore TRAMP buffers to speedup
projectile. browse-at-remote uses vc-git-root to find git root project
and it will fail to find project root for remote buffers. Temporary
return vc-ignore-dir-regexp to default value.

Fix: #5660
2021-11-18 19:23:55 +01:00
Itai Y. Efrat
b3b875e226 fix(dired): dired-omit-files additions
- escape initial `.`
- use only noncapturing groups
2021-10-28 20:39:51 +02:00
Kirill A. Korinsky
0869d28483
bump: :emacs vc :tools magit
charignon/github-review@4d91dd6c56 -> charignon/github-review@2a24e75dfc
magit/forge@8264234db6 -> magit/forge@72b29bd7bc
magit/git-modes@433e1c57a6 -> magit/git-modes@62fbf2e5b8
magit/magit@1e40d00217 -> magit/magit@aba0a59611

- gitconfig-mode and gitignore-mode were merged into git-modes.

Close: #5665
Fix: #5667
2021-10-21 12:27:42 +02:00