Commit Graph

25 Commits

Author SHA1 Message Date
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
46c1f7a7b4
Fix #3282: activate flyspell-lazy-mode 2020-06-02 23:18:01 -04:00
Henrik Lissner
470fe21098
Merge pull request #3137 from CeleritasCelery/spell
Wrap flyspell-correct-at-point in feature check
2020-05-18 03:00:22 -04:00
Troy Hinckley
00ddb2eba6 Only rebind ispell-word if flyspell-correct is enabled
flyspell-correct-at-point is not defined unless the the spell module is
enabled.
2020-05-16 22:33:33 -06:00
Henrik Lissner
0e851ace9b
Backport bits of CLI rewrite
The rewrite for Doom's CLI is taking a while, so I've backported a few
important changes in order to ease the transition and fix a couple bugs
sooner.

Fixes #2802, #2737, #2386

The big highlights are:

- Fix #2802: We now update recipe repos *before* updating/installing any
  new packages. No more "Could not find package X in recipe repositories".

- Fix #2737: An edge case where straight couldn't reach a pinned
  commit (particularly with agda).

- Doom is now smarter about what option it recommends when straight
  prompts you to make a choice.

- Introduces a new init path for Doom. The old way:
  - Launch in "minimal" CLI mode in non-interactive sessions
  - Launch a "full" interactive mode otherwise.
  The new way
  - Launch in "minimal" CLI mode *only* for bin/doom
  - Launch is a simple mode for non-interactive sessions that still need
    access to your interactive config (like async org export/babel).
  - Launch a "full" interactive mode otherwise.

  This should fix compatibility issues with plugins that use the
  async.el library or spawn child Emacs processes to fake
  parallelization (like org's async export and babel functionality).

- Your private init.el is now loaded more reliably when running any
  bin/doom command. This gives you an opportunity to configure its
  settings.

- Added doom-first-{input,buffer,file}-hook hooks, which we use to queue
  deferred activation of a number of packages. Users can remove these
  modes from these hooks; altogether preventing them from loading,
  rather than waiting for them to load to then disable them,
  e.g. (after! smartparens (smartparens-global-mode -1)) -> (remove-hook
  'doom-first-buffer #'smartparens-global-mode)

  Hooks added to doom-first-*-hook variables will be removed once they
  run.

  This should also indirectly fix #2386, by preventing interactive modes
  from running in non-interactive session.

- Added `doom/bump-*` commands to make bumping modules and packages
  easier, and `doom/bumpify-*` commands for converting package!
  statements into user/repo@sha1hash format for bump commits.

- straight.el is now commit-pinned, like all other packages. We also
  more reliably install straight.el by cloning it ourselves, rather than
  relying on its bootstrap.el.

  This should prevent infinite "straight has diverged from master"
  prompts whenever we change branches (though, you might have to put up
  with it one more after this update -- see #2937 for workaround).

All the other minor changes:

- Moved core/autoload/cli.el to core/autoload/process.el
- The package manager will log attempts to check out pinned commits
- If package state is incomplete while rebuilding packages, emit a
  simpler error message instead of an obscure one!
- Added -u switch to 'doom sync' to make it run 'doom update' afterwards
- Added -p switch to 'doom sync' to make it run 'doom purge' afterwards
- Replace doom-modules function with doom-modules-list
- The `with-plist!` macro was removed, since `cl-destructuring-bind`
  already serves that purpose well enough.
- core/autoload/packages.el was moved into core-packages.el
- bin/doom will no longer die if DOOMDIR or DOOMLOCALDIR don't have a
  trailing slash
- Introduces doom-debug-variables; a list of variables to toggle on
  doom/toggle-debug-mode.
- The sandbox has been updated to reflect the above changes, also:
  1. Child instances will no longer inherit the process environment of
     the host instance,
  2. It will no longer produce an auto-save-list directory in ~/.emacs.d
2020-05-15 01:33:52 -04:00
Henrik Lissner
8b5525049d
Bump :checkers
d12frosted/flyspell-correct@e765d1a -> d12frosted/flyspell-correct@fd8ac7a
flycheck/flycheck@f19a51c -> flycheck/flycheck@246e1d4

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:28:02 -04:00
James Ravn
d95d63da93
Fix langtool config for Linux
Fixes https://github.com/hlissner/doom-emacs/issues/2072.

I have left the mac portion alone as I don't have a mac handy to test this.
2020-04-28 11:22:43 +01:00
Henrik Lissner
d21099cbd0
Flycheck buffer on idle-buffer-switch 2020-04-17 15:47:04 -04:00
Peter Hoeg
cfc66b9b10 grammar/langtool: support setting the path to the binary i/o jar 2020-03-31 10:15:38 +08:00
Henrik Lissner
169f9a6121
General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
Henrik Lissner
6b73f38395
Bump to flycheck/flycheck@f19a51c
From flycheck/flycheck@08345d3
2020-03-27 01:08:36 -04:00
Henrik Lissner
e46cd73f3d
Bump :checkers spell
d12frosted/flyspell-correct@b0353a4 -> d12frosted/flyspell-correct@e765d1a
2020-02-29 12:34:28 -05:00
Henrik Lissner
4a060e6e9d
Bump :checkers syntax
flycheck/flycheck@74377fa -> flycheck/flycheck@08345d3
2020-02-29 12:33:29 -05:00
Henrik Lissner
bd833091c2
Bump to flycheck/flycheck@74377fa
From flycheck/flycheck@269237f
2020-02-23 15:03:30 -05:00
Xuan Bi
7f6876d85b Enable flyspell in git-commit-mode 2020-02-13 18:09:09 +08:00
Henrik Lissner
ef472d7c1a
Add flyspell-lazy package
To hopefully speed up flyspell.
2020-02-08 20:43:29 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Geographer
b2e6a069f0 Move an aspell specific argument to appropriate block 2020-01-23 10:52:44 +00:00
Henrik Lissner
206d0d9d92
Prevent flycheck-correct if region/insert mode is active 2020-01-20 22:23:40 -05:00
Henrik Lissner
fb24a8deec
Activate flyspell-mode in specific modes
yaml-mode is derived from text-mode, rather than prog or conf-mode. This
may be true for other major modes, so we must be more judicious about
where we activate flyspell-mode.
2020-01-20 19:31:35 -05:00
Henrik Lissner
dc2b9781ab
Minor refactors & reformatting 2020-01-20 01:55:31 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Gerry Agbobada
ca3920e5b7
Fix flycheck migration void-function 2020-01-10 11:56:19 +01:00
Henrik Lissner
b89992624b
Move :tools fly{check,spell} to :checkers {syntax,spell}
These modules were renamed so we can later generalize their
implementations, such as adding flymake support to the syntax checker.
2020-01-09 22:56:26 -05:00
Henrik Lissner
a680a4c96d
Replace :app write with :checkers grammar 2020-01-09 16:43:03 -05:00