Commit graph

13791 commits

Author SHA1 Message Date
Henrik Lissner
2884dd9ea7
Fix 'recreate repo' option not being recommended
When updating a package with a changed recipe (e.g. it's branch).
2020-05-15 02:29:22 -04:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
Henrik Lissner
4e28b48a3a
Fix C-j/C-k for evil-collection-minibuffer users 2020-05-15 01:34:07 -04:00
Henrik Lissner
f521823d3b
Fix quiet! macro not silencing file loading 2020-05-15 01:33:52 -04:00
Henrik Lissner
fc90e0fb71
Simplify quiet!'s expanded form
We don't need to test doom-interactive-mode at runtime.
2020-05-15 01:33:52 -04:00
Henrik Lissner
68709fe93a
Fix letf! sometimes losing letf binds
When expanding:

  (quiet! ...)

You'd expect (simplified for explanation):

  (letf! ((standard-output ...)
         ((symbol-function #'message) ...)
         ((symbol-function #'load-file) ...)
         ((symbol-function #'write-region) ...))
    ...)

But instead get:

  (letf! ((standard-output ...))
    ;; where'd the other binds go?
    ...)

This was due to data-loss caused by nreverse's destructive mutation of
the given bindings.

Also: silences byte-compiler complaining about unused bindings.
2020-05-15 01:33:52 -04:00
Henrik Lissner
e7f04a3d87
doom/doctor: fix over-eager omnisharp checks
Fixes #2206
2020-05-15 01:33:52 -04:00
Henrik Lissner
68b5f687bd
doom/doctor: fix 'org not installed' error
Also indents missing package warnings correctly and makes them harder to
mistake for system packages.

Fixes #2284
2020-05-15 01:33:52 -04:00
Henrik Lissner
c682079783
doom/doctor: warn about 28+, not 27+
27 is now the recommended version for Doom.
2020-05-15 01:33:52 -04: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
Felix Clark
95824c5054 obviate helper function with after! 2020-05-14 17:40:59 -04:00
Henrik Lissner
043a561565
Fix #3123: wrong-type-arg stringp error from org-encrypt-string
Due to upstream issue (read comments).
2020-05-14 15:42:13 -04:00
Henrik Lissner
85fb59acca
Fix wrong-type-arg symbolp error from notes commands 2020-05-14 15:17:01 -04:00
James Adam
cd4727041e Add keymap descriptions for Ruby module
We can make the whichkey menu for Ruby files a bit more user friendly by
showing simple names for each section.
2020-05-14 16:46:08 +01:00
Henrik Lissner
2bdc14710f
Merge pull request #2986 from rushsteve1/eshell-improvements
Improved Eshell module part 1
2020-05-14 04:31:52 -04:00
Henrik Lissner
59b73121d0
Merge pull request #3094 from sei40kr/add-lookup-handlers
tools/lookup: Support lookup handlers for implementations and type definition
2020-05-14 04:21:24 -04:00
Henrik Lissner
3175224dc9
Merge pull request #3109 from jsmestad/patch-4
Documentation fix - use-packages! typo in getting started
2020-05-14 04:21:12 -04:00
Henrik Lissner
0fb303c98a
Merge pull request #3113 from nobv/add-purescriipt-lsp
Added +lsp flag to lang/purescript
2020-05-14 04:20:53 -04:00
Henrik Lissner
fad7d806bf
Merge pull request #3115 from otavioschwanck/projectile-rails-templates
Projectile rails templates
2020-05-14 04:20:32 -04:00
Henrik Lissner
e92a470252
Merge pull request #3100 from chuxubank/develop
Change path separator on Windows when using fd
2020-05-14 04:20:09 -04:00
Henrik Lissner
a2011232a2
Change envvar coding system buffer locally 2020-05-14 04:13:05 -04:00
chuxubank
8a70dd0379 Change path separator on Windows when using fd
Show slash instead of backslash
2020-05-14 16:07:04 +08:00
Henrik Lissner
21fda9af60
Read & write envvar file as utf-8 #3044 2020-05-14 02:54:56 -04:00
Henrik Lissner
500e078e12
Map windows key to super 2020-05-14 02:07:25 -04:00
Henrik Lissner
f2c9e40d44
Load python on REPL commands
To fix 'void-variable python-shell-interpreter' and similar errors.
2020-05-14 01:53:41 -04:00
nobv
7976608603 Updated :lang purescriipt flag in docs/modules.org 2020-05-14 14:18:22 +09:00
Henrik Lissner
a239326165
Activate save-place-mode when it loads 2020-05-14 01:00:12 -04:00
Otávio Schwanck
694be5cbd8 bring back projectile-rails functionality 2020-05-14 01:59:24 -03:00
Henrik Lissner
b1d9e39a8a
Bump :tools debugger lsp pdf
emacs-lsp/dap-mode@cc2eb2f -> emacs-lsp/dap-mode@8f69dc2
emacs-lsp/lsp-mode@11750e7 -> emacs-lsp/lsp-mode@bac42c5
emacs-lsp/lsp-ui@1288be9 -> emacs-lsp/lsp-ui@ab55e30
politza/pdf-tools@d971298 -> politza/pdf-tools@c510442
realgud/realgud@e03446f -> realgud/realgud@1238d8e
2020-05-14 00:12:10 -04:00
Henrik Lissner
92174200aa
Prevent pdf page being persisted too many times 2020-05-14 00:07:26 -04:00
Henrik Lissner
558ea08411
Disable slow smartparens-org defaults in org-mode
But keep its base defaults.

Relevant to #452
2020-05-13 22:48:42 -04:00
Henrik Lissner
06b3439627
Load org on +default/{browse,find-in}-notes if org-directory isn't set 2020-05-13 19:33:23 -04:00
Henrik Lissner
a10c157d87
Fix zr, zm, zR & zM vimmish folding in org-mode
Fixes the following keybinds for evil users:

z r        open next level of headings buffer-wide
z m        close next level of headings buffer-wide
z R        open all folded headings
z M        close all folded headings
[N] z R    open all headings at level N and above
[N] z M    close all headings at level N and below
2020-05-13 19:31:09 -04:00
Henrik Lissner
7bbb52f17c
No longer disable org-highlight-sparse-tree-matches
The original issue it was meant to fix no longer occurs in recent
versions of org.
2020-05-13 16:06:25 -04:00
Henrik Lissner
abb9ab7674
Fix :mc/REGEXP not placing real cursor in correct position
With ':mc/abc' we should get

  a b c
  a b [a]bc
  a [a]bc c
  [a]bc b c
  a b c

Instead, we got

  a b c
  a b abc
  a [a]bc c
  [a]bc b c
  a b c

And the real cursor would be somewhere else (on the same column it was
left in when you were in visual mode).
2020-05-13 15:23:19 -04:00
Henrik Lissner
f83499c7a7
Revert 63ab88105
With this fix we're forced to rebind all C-i keybinds plugins bind. This
is too much of a maintenance nightmare. This "fix" doesn't really fix
anything really, so users can reinstate it themselves, if they prefer
it.

Relevant to #3090
2020-05-13 14:41:57 -04:00
Henrik Lissner
5c493541a9
Fix #3089: load unfo-fu a little sooner 2020-05-13 14:05:58 -04:00
Steven vanZyl
c881f98960
Merge branch 'develop' into eshell-improvements 2020-05-13 09:17:10 -04:00
nobv
caf45044e8 Fixed README 2020-05-13 17:39:56 +09:00
nobv
a036513241 Added +lsp flag to lang/purescript 2020-05-13 17:32:20 +09:00
Henrik Lissner
bc0db09a28
Fix #1703: dired not listing files over TRAMP 2020-05-12 23:22:50 -04:00
Henrik Lissner
a7c2cbab90
Fix #3110: wrong-number-of-args on backspace
Due to a regression in 82ddc8633.
2020-05-12 22:40:07 -04:00
Henrik Lissner
a63ee13f01
Bump :core
Wilfred/helpful@c54e9dd -> Wilfred/helpful@c0662aa
bbatsov/projectile@5cd261d -> bbatsov/projectile@768f057
domtronn/all-the-icons.el@0b74fc3 -> domtronn/all-the-icons.el@d6cb6d4
jscheid/dtrt-indent@9163cd9 -> jscheid/dtrt-indent@50c440c
2020-05-12 21:41:05 -04:00
Henrik Lissner
cbd05afcc8
Bump :emacs undo
ideasman42/emacs-undo-fu-session@b808ef0 -> ideasman42/emacs-undo-fu-session@0400f15
ideasman42/emacs-undo-fu@0ce9ac3 -> ideasman42/emacs-undo-fu@2b1e532
2020-05-12 21:39:00 -04:00
Henrik Lissner
6d52baeb57
Fix end-of-file error
Because I was a derp lord in 717d53c66, and always will be.
2020-05-12 21:33:52 -04:00
Henrik Lissner
2419990caa
s/doom-store-set/doom-store-put
This was renamed in 4b28e9ce8
2020-05-12 20:19:41 -04:00
Henrik Lissner
d7061c8663
Remap haskell-mode-jump-to-def-or-tag to +lookup/definition 2020-05-12 20:07:11 -04:00
Henrik Lissner
717d53c666
Tweak GC settings, particularly for org & lsp
These two modes are particularly expensive. This needs more
testing.
2020-05-12 19:59:14 -04:00
Henrik Lissner
82ddc86335
Move RET & backspace fixes out of +smartparens feature
Neither of these are tied to smartparens, and should be available to
folks that have disabled +smartparens.
2020-05-12 19:42:03 -04:00
Justin Smestad
f2d6230736
Fix use-packages! typo in getting started 2020-05-12 13:41:13 -06:00