Commit graph

1219 commits

Author SHA1 Message Date
Henrik Lissner
0e2fa0ba19
fix(lib): type error on doom/restart-and-restore
On Windows, restart-emacs doesn't escape its arguments properly (#6219).
56686f677a attempted to fix this, but ended up breaking it for
everyone else as well, causing the type error:

  Wrong type argument: listp, "--eval \"(add-hook 'window-setup-hook #'doom-load-session 100)\""

This commit fixes both the regression and the original issue.

Amend: 56686f677a
Fix: #6219
2022-05-09 15:36:20 +02:00
Henrik Lissner
80cd7557e1
fix(lib): doom-files-in's :map causing type errors
This regression was introduced in 10d00b7cc4, causing
"wrong-type-argument: stringp (X . Y)" errors. It is triggered when
doom-files-in is used with a non-nil :map on a nested directory
tree (like our module tree).

Fix: #6370
Amend: 10d00b7cc4
2022-05-05 20:32:54 +02:00
Henrik Lissner
10d00b7cc4
fix(lib): unused :map property in doom-files-in 2022-05-05 15:20:07 +02:00
Henrik Lissner
56686f677a
fix(lib): improper quoting in restart-emacs command
Should be addressed upstream, but restart-emacs hasn't been updated in
nearly two years, so I temporarily fix it here.

Fix: #6219
2022-05-02 01:39:10 +02:00
Henrik Lissner
d35157ce50
fix(lib): void-variable var
Caused by a typo introduced in cf362bc.

Fix: #6240
Amend: cf362bc1a0
2022-04-03 20:06:58 +02:00
Henrik Lissner
14ebfc02a5
fix(lib): wrong-number-of-args error on doom/info
- Fixes a wrong-number-of-args error, due to outdated interactive
  spec (#6227).
- Fixes a regression (caused by the refactor in dcae7187b4) where the
  doom-info buffer is initially too short (~3 lines tall) to display all
  of its contents.

Fix: #6227
Amend: dcae7187b4
2022-03-31 21:08:31 +02:00
Henrik Lissner
1f0b74a7c5
fix(lib): cases where doom/bumpify-diff fails
...to crawl the package! forms in the magit diff buffer.
2022-03-31 19:25:49 +02:00
Henrik Lissner
cf362bc1a0
fix(lib): update doom/set-indent-width for dtrt-indent
dtrt-indent-hook-mapping-list entries now accept lists of variables.
This updates doom/set-indent-width to accommodate that.

Ref: jscheid/dtrt-indent@1986ad4e60
2022-03-31 16:35:37 +02:00
Henrik Lissner
dcae7187b4
refactor(lib): doom-info & remove unused commands
- Simplify doom-info and doom/info.
- Remove doom/copy-buffer-contents (may be moved later, but atm not very
  useful).
- Remove doom/am-i-secure (this will later be replaced with CLI
  commands)
2022-03-30 17:32:47 +02:00
Henrik Lissner
2aeca577c8
refactor: correct version variables
These two variables have been the wrong way around for a while. In
preparation for splitting Doom into separate repos (its core and module
libraries), I've corrected them. doom-modules-version is a placeholder
and will be removed later.

I've also settled on -dev suffix for inter-release versions of Doom,
rather than alpha.
2022-03-21 03:57:31 +01:00
Henrik Lissner
319665bbdc
feat(lib): time stamp *Messages* lines
...when doom-debug-mode is active.
2022-03-21 03:57:03 +01:00
Jeetaditya Chatterjee
302dbea2b1
fix(lib): typo in doom--help-major-mode-module-alist
Ref: #6122
2022-02-17 18:06:37 +01:00
Henrik Lissner
009613a470 refactor(default,lib): doom--org-headings 2022-02-10 21:07:20 +01:00
Henrik Lissner
39886536c3 fix(lib): incorrect &user markers in doom-info
M-x doom/info marks modules that live in $DOOMDIR with &user, but what
if the user has moved their ~/.emacs.d into $DOOMDIR? As this seems to
happen often with Chemacs users, I've made this check a little more
procise.
2022-02-10 21:07:20 +01:00
Henrik Lissner
2d7e0c90ba refactor(lib): add Emacs version to doom/version 2022-01-27 03:43:51 +01:00
Lele Gaifax
60cfb383ea fix: actually forward the `select' param to doom/bump-package-at-point
Also, rectify the docstring for `doom/bump-packages-in-buffer', that was
an exact replica of the actual workhorse, `doom/bump-package-at-point'.
2022-01-10 02:21:49 +01:00
Lele Gaifax
e5213f20e5 nit: fix several documentation typos 2022-01-10 02:21:49 +01:00
Henrik Lissner
c16f38ab1d fix(lib): sort bumpified modules list 2022-01-08 18:55:02 +01:00
Henrik Lissner
dde20aa8fd feat(lib): add doom-font-exists-p
For easier font detection in your config.

Ref: #5948
2022-01-03 18:34:01 +01:00
Henrik Lissner
ff854157a6 fix(lib): package URL in documentation
Fixes [[doom-package:*]] links in (future) docs and always displays a
homepage URL in 'SPC h p' (or 'C-h p') package docs.
2021-10-18 01:15:54 +02:00
Henrik Lissner
281ee1d27b feat(lib): add doom/remove-recent-file
To interactively remove a file from your recentf list. (Perhaps similar
could be added to embark for consult-recent-files?)
2021-10-10 18:36:46 +02:00
Henrik Lissner
68d8364aea refactor: adopt CalVer and reorganize core.el
Doom is adopting CalVer (starting at 21.12) and, later, I'll move Doom's
core out to a separate repo, where it'll stay with SemVer (starting at
3.0).
2021-10-10 18:36:46 +02:00
Henrik Lissner
0381c7868e fix: doom/reload not restoring initial envvars
'doom/reload' should and cannot regenerate the user's envvar file,
because it's not typically running in your shell, but it should reload
your existing envvar file.

Fix #5399
Ref #5344
2021-10-01 18:20:16 +02:00
Henrik Lissner
3ad9e39559 fix(lib): doom/reload-theme not reloading active theme
Rather than reloading whatever `doom-theme` is set to, reload the
currently active theme(s). Although `load-theme` is advised to change
the value of `doom-theme`, not all theme switching commands use
`load-theme` (e.g. `consult-theme`).

Fix #5539
2021-09-30 15:06:57 +02:00
Henrik Lissner
1419b9dc41 feat: add doom/add-directory-as-project command
Will register any arbitrary directory as a projectile project, adding a
.project file to it if necessary.
2021-09-26 14:35:53 +02:00
Henrik Lissner
aed9d0b7e5 fix: consult--grep call in load-path search commands
doom/help-search-load-path and doom/help-search-loaded-files were broken
by changes to consult--grep's interface upstream.

Ref 7762386e52
2021-09-15 17:47:17 +02:00
Henrik Lissner
c298dc3ac7 refactor(doom-quit): distinguish flavor text in quit prompts
Makes it easier to tell apart flavor text from the actual prompt.
2021-08-16 15:01:22 -04:00
Henrik Lissner
462bfb9693 fix: doom/reload runs remotely in tramp buffers
When run in a remote buffer, `doom sync` is executed on the remote host,
which is not intended behavior.

Fix #5378
2021-08-14 02:29:46 -04:00
Daanturo
14f9289998
fix: wrong-number-of-args error in doom/reload-env
Close #5368
Ref 9687c04a84
2021-08-12 12:26:56 -04:00
Henrik Lissner
9687c04a84 fix: doom/reload 404ing on executables
Half-reverts c2c6a64, which tried to get doom/reload to regenerate the
envvar file from within Emacs, but running an environment scraper in a
bare environment is really hard to get right. Ideally, your shell config
should set up your environment, but there are too many edge cases or
poor configs in the wild to depend on this.

I've brought back doom/reload-env, but only to reload the envvar file
-- *not* regenerate it. I've given up on trying to do that from within
Emacs.

Fix #5344
Ref c2c6a64118
2021-08-11 01:50:42 -04:00
Henrik Lissner
e76f5388be fix: doom-system-cpus not handling int values
ce31880 did not fix doom-system-cpus on msys2 builds because the
function didn't handle integer return values from any of its code
paths (which formerly returned strings or lists).

Ref ce31880ccc
Fix #5347
2021-08-06 03:44:34 -04:00
Henrik Lissner
ce31880ccc fix: doom-system-cpus returning 1 on msys2 build
Fix #5347
2021-08-06 03:08:33 -04:00
Henrik Lissner
24866a17ee fix: void-variable arg error from doom/reload
Some leftover code from the doom/reload-env, which was removed in
c2c6a6411.

Ref c2c6a64118
Fix #5344
2021-08-05 12:54:37 -04: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
c2c6a64118 fix: doom/reload now regenerates the envvar file
Removes doom/reload-env, now that it is redundant.
2021-08-03 23:00:43 -04:00
Henrik Lissner
3bedae38dd dev: transition to 12c long hashes
In bumps, in :pin's, and in our git conventions. We have no rules for
the commit linter for it yet, though.
2021-08-02 22:07:13 -04:00
NightMachinary
a6f365bb3f
fix: doom/move-this-file when directory is the target
* doom/move-this-file now supports moving directly into a directory
* applied requested changes

Close #4861
2021-08-01 15:13:52 -04:00
Itai Y. Efrat
ae2a63137a fix: use new commit format in doom/bumpify-diff 2021-07-28 23:57:39 +03:00
Henrik Lissner
33b646826b fix(vertico): add counsel-file-jump analogue
Fix 'SPC f F' / 'C-c f F' for vertico users
2021-07-28 12:54:23 -04:00
Henrik Lissner
cd87cc0cc8 refactor: remove redundant org code
org-collect-keywords does the job here. No need to reinvent the wheel.
2021-07-28 12:42:22 -04:00
Henrik Lissner
dd9657d90d Fix SPC f F w/ vertico + consult
Not a perfect analogue to counsel-file-jump, but it's a start (and
better than the previous no-op).
2021-07-25 17:55:59 -04:00
Henrik Lissner
91e1eac024 Fix doom/delete-backward-word errors in minibuffer
The cause of the error is harmless, but the error itself was causing
breakage in the minibuffer.
2021-07-25 16:26:47 -04:00
Itai Y. Efrat
a0eb4e9b65 completion/selectrum -> completion/vertico, part 3
- Rename all functions and variables in the module to reflect the
  namechange (and the irc jump function)
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
92586cacd4 selectrum: remove doom-project-find-file hack
This solution doesn't rely on condition evaluation order, and doesn't
contain `featurep!`'s unnecessarily.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
49a5c51615 selectrum: fix bugs when counsel is loaded (hack)
some doom functions check the completion module with `fboundp`'s instead
of `featurep!`, and counsel can be loaded by using e.g. `lispy`. we add
temporary fixes for this by checking for selectrum stuff first, but this
should be given a more robust fix later on

also we document the selectrum PR's hacks in the TODO.org

see discussion on #5013
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
26a310d04c selectrum: improve ivy parity
- add `completion-at-point` as analogue to `cousnel-company`
- fix emacs-bindings `counsel-company` binding to respect helm and selectrum
- add org jump commands `consult-org-heading` and `consult-org-agenda` bindings
- add `consult-history` as `counsel-minibuffer-history` analogue
- add support for `doom/help-search`
- update TODO.org
2021-07-25 02:50:31 +03:00
Henrik Lissner
3fb4ac2e4b
Merge pull request #5274 from Yp3rion/develop
Fix doom/help-packages to correctly print config locations
2021-07-23 16:15:31 -04:00
Henrik Lissner
6672ee5cf5 Simplify session persistence 2021-07-12 16:22:30 -04:00
Henrik Lissner
5c741cb65f Fix #5255: reload session after dashboard init
Otherwise, the dashboard replaces one of the buffers when reloading the
last session at startup.
2021-07-12 16:00:45 -04:00
Henrik Lissner
f523830a0e Don't load core-cli on doom/reload
Hopefully addresses "Device 1 is not a termcap terminal device" errors,
due to core-cli changing `debugger`. core-cli should never be loaded in
an interactive session anyway.

Possibly fixes #4849
2021-07-11 17:52:08 -04:00