Commit graph

313 commits

Author SHA1 Message Date
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
Itai Y. Efrat
f0d0ce65ed fix(dired): ranger-travel bug
Overrides ranger-travel to have better mode detection for which
completion framework to use, and default to emacs built-ins instead of
ido.

In theory this should be a temporary fix until ralesi/ranger.el#236 gets
merged, but the maintenance status of ranger.el is not clear.

Fix #5509
Ref ralesi/ranger.el#236
2021-10-05 02:30:23 +02:00
Henrik Lissner
2bc67d8387 bump: :app :checkers :config :emacs :term :tools :ui
Alexander-Miller/treemacs@a6f9e9f1ce -> Alexander-Miller/treemacs@63e2bc207a
Silex/docker.el@9bcefbe54d -> Silex/docker.el@4fc69969b1
akermu/emacs-libvterm@2b1392cb2b -> akermu/emacs-libvterm@2681120b77
bdarcus/bibtex-actions@6e3a194c3a -> bdarcus/bibtex-actions@08c6ca0e5b
dash-docs-el/dash-docs@dafc8fc9f1 -> dash-docs-el/dash-docs@29848b6b34
dgutov/diff-hl@992559f98a -> dgutov/diff-hl@40c89a7b0d
dimitri/switch-window@2801d9b3a9 -> dimitri/switch-window@8d9fe251d8
editorconfig/editorconfig-emacs@e10fa22b13 -> editorconfig/editorconfig-emacs@2ab86dc9a8
ema2159/centaur-tabs@9c7c936e4e -> ema2159/centaur-tabs@8b4249c405
emacs-circe/circe@d6f1fa1864 -> emacs-circe/circe@77e16de3b9
emacs-lsp/lsp-treemacs@905cc74726 -> emacs-lsp/lsp-treemacs@d82df44d63
emacsorphanage/osx-trash@0f1dc052d0 -> emacsorphanage/osx-trash@af74a2055a
emacsorphanage/quickrun@35e91f4b6c -> emacsorphanage/quickrun@78317951cd
flycheck/flycheck@21d52264aa -> flycheck/flycheck@784f184cdd
hlissner/emacs-doom-themes@9e2680b918 -> hlissner/emacs-doom-themes@65fb964f36
https://git.savannah.gnu.org/git/emms.git@6e0aaaf4c559 -> https://git.savannah.gnu.org/git/emms.git@c42fab572846
ideasman42/emacs-spell-fu@1abcb5594e -> ideasman42/emacs-spell-fu@10823ae58f
ideasman42/emacs-undo-fu@e0ad06b5ef -> ideasman42/emacs-undo-fu@34b27c01da
joostkremers/writeroom-mode@b648b34017 -> joostkremers/writeroom-mode@7f4ec92404
kidd/org-gcal.el@4c2616a4f8 -> kidd/org-gcal.el@80e6f9501f
magnars/expand-region.el@4b8322774d -> magnars/expand-region.el@95a773bd8f
millejoh/emacs-ipython-notebook@09af85821e -> millejoh/emacs-ipython-notebook@0600c286bd
mohkale/consult-eglot@a6aeb6fa07 -> mohkale/consult-eglot@28a09cc839
noctuid/link-hint.el@09ba5727d8 -> noctuid/link-hint.el@d3c5bacc9c
rolandwalker/nav-flash@55786c9582 -> rolandwalker/nav-flash@2e31f32085
skeeto/elfeed@243add9e74 -> skeeto/elfeed@162d7d545e
szermatt/emacs-bash-completion@65e54c6f9c -> szermatt/emacs-bash-completion@c5eaeed156
tarsius/hl-todo@5ac0076cfe -> tarsius/hl-todo@42f744ffb5
tecosaur/emacs-everywhere@64ba2e3f30 -> tecosaur/emacs-everywhere@da88fa2d04
tkf/emacs-request@f3a5b4352e -> tkf/emacs-request@2b68b3ca54
tmalsburg/helm-bibtex@a0d32ab167 -> tmalsburg/helm-bibtex@b85662081d
yoshiki/yaml-mode@3a57058468 -> yoshiki/yaml-mode@63b637f846
yqrashawn/fd-dired@c223aee30a -> yqrashawn/fd-dired@458464771b
2021-09-15 17:47:17 +02:00
Henrik Lissner
358f6f57b0 bump: :tools magit :emacs vc
alphapapa/magit-todos@78d24cf419 -> alphapapa/magit-todos@60152d5c4e
magit/forge@49da45ac45 -> magit/forge@6e8ab6c67e
magit/git-modes@7678ead3cd -> magit/git-modes@433e1c57a6
magit/magit@0f4963b0ec -> magit/magit@1e40d00217
pidu/git-timemachine@8d675750e9 -> pidu/git-timemachine@3381797bcb

Close #5465
2021-09-14 14:30:06 +02:00
Aleksei Fedotov
accffb8f5e bump!: :emacs vc
rmuslimov/browse-at-remote@e02ad2189c -> rmuslimov/browse-at-remote@cef26f2c06

BREAKING CHANGE: browse-at-remote-remote-type-domains is replaced by
browse-at-remote-remote-type-regexps. If you have a custom domain
configured replace:

    (add-to-list 'browse-at-remote-remote-type-domains
      ("git.example.com" . "github")

with

    (add-to-list 'browse-at-remote-remote-type-regexps
      ("^git\\.example\\.com$" . "github")

Added support for Gittiles.

Shortlog:

Jack Rosenthal (3):
      Add support for Gitiles
      Fix broken tests
      More permissive regex in browse-at-remote--gerrit-url-cleanup

Rustem Muslimov (2):
      Fix broken merge
      Fix savannah gnu message

rmuslimov (3):
      Merge pull request #78 from jackrosenthal/gitiles
      Merge pull request #80 from jackrosenthal/broke_tests
      Merge pull request #81 from jackrosenthal/regex
2021-09-09 17:22:29 +02:00
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Henrik Lissner
cdbd39ba26 emacs/undo: increase undo-outer-limit
Was missing a 0 (a typo), which meant it was less than its default
value, thus having the opposite effect and making data loss *more*
likely.

Also got rid of outdated comments; I think those have been around since
the sub-v2.0 days of Doom.
2021-07-12 21:59:52 -04:00
Itai Y. Efrat
34fae1c01c Remove remaining Emacs27+ checks
- Remove remaining `EMACS27+` checks, since the whole codebase is
  assumed to run at version 27 or above now
- Remove `EMACS27+` definition since it's no longer needed
2021-07-10 16:03:41 +03:00
Henrik Lissner
5be988ac31 Bump :emacs dired
dgutov/diff-hl@1af31fe -> dgutov/diff-hl@992559f
wyuenho/all-the-icons-dired@f401fe2 -> wyuenho/all-the-icons-dired@a758766
yqrashawn/fd-dired@7d18938 -> yqrashawn/fd-dired@c223aee

Fixes #4923: removes illegal --quoting-style=literal option passed to
xargs by fd-dired package on BSD systems (like macOS).
2021-07-08 18:20:17 -04:00
Henrik Lissner
6438172e74 Fix #5224: void-function error on +vc/* commands 2021-07-08 15:11:39 -04:00
Henrik Lissner
364e74a96b Bump :emacs vc :tools magit
magit/forge@37aa4e4 -> magit/forge@551e515
magit/git-modes@14adca2 -> magit/git-modes@7678ead
magit/magit@e378827 -> magit/magit@b68a760
rmuslimov/browse-at-remote@fadf99d -> rmuslimov/browse-at-remote@e02ad21

Fixes #5095: breakage due to upstream refactors
2021-05-25 13:39:26 -04:00
j3010
3a1aaacbad
Add ranger documentation to dired README (#5085)
* added documentation on the command to switch betwee minimal ranger and full ranger

* added link to ranger section in dired README.org

* Move ranger tip to Keybindings section

Co-authored-by: Henrik Lissner <accounts+github@v0.io>
2021-05-24 13:49:32 -04:00
Henrik Lissner
1840ae8a18 Backport VC-aware bug-reference-mode from 28.x
Fixes gf (+lookup/file) on issue/PR references for Emacs 27.x users,
for example:

  #1234
  doom-emacs#1234
  hlissner/doom-emacs#1234
2021-05-16 22:50:03 -04:00
Henrik Lissner
69beabe287 Fix #5060: don't hash relative backup file paths
Also refactors undo-fu-session's make-hashed-file-path advise to use
make-backup-file-name-1.
2021-05-16 14:02:34 -04:00
Henrik Lissner
87e48cbc90 Add git-timemachine support to browse-at-remote
browse-at-remote commands will now open the current file at the active
revision on that project's git forge in your browser.
2021-05-10 16:55:54 -04:00
Henrik Lissner
b12a0c02b3 Bump :emacs undo
ideasman42/emacs-undo-fu@f4db4c9 -> ideasman42/emacs-undo-fu@e0ad06b
ideasman42/emacs-undo-fu-session@a038914 -> ideasman42/emacs-undo-fu-session@243d93b

Also refactors module to conform to conventions.
2021-05-06 18:36:32 -04:00
Henrik Lissner
9831642a02 Fix #4993: shorten long file names for caches
Emacs generates long file names for auto-save and backup files.
undo-fu-session and tramp are two more big offenders. This fix SHA1s
their file names so they never exceed 40 characters.

Will also affect any package that uses make-backup-file-name-1
directly (like undo-tree).
2021-05-06 18:36:32 -04:00
Henrik Lissner
dec15832de Fix #4877: dired not sorting directories first
On macOS and Linux, because ls-lisp hasn't been loaded yet.
2021-04-17 00:04:45 -04:00
Henrik Lissner
33af1f98b4 emacs/dired: drop non-standard switches on Windows
On Windows (or systems that don't support ls),
ls-lisp-use-insert-directory-program will be nil. In these cases, strip
out non-standard switches so they don't throw an error and make dired unusuable.

Fixes #3939
2021-04-14 23:43:45 -04:00