Commit Graph

9611 Commits

Author SHA1 Message Date
df56ea5c60 Fix projectile breakage in windows in git projects
Because projectile tries to use `tr`, which doesn't exist on windows.
2019-07-08 22:08:54 +02:00
d0412b7f56 lang/ocaml: start lsp as late as possible
Gives the user more opportunity to customize lsp et co with
file/dir-local variables or mode hooks.
2019-07-08 21:24:36 +02:00
17bd6e43c6 tools/direnv: consult direnv less frequently
By checking on doom-switch-{buffer,window}-hook and focus-in-hook, which
fires a lot less often than post-command-hook.
2019-07-08 21:23:49 +02:00
c5cd29ef74 ui/workspaces: refactor restoration of indirect buffers 2019-07-08 21:21:02 +02:00
e645185907 Set org-crypt vars sooner
In :init rather than :config, so users' (after! org-crypt ...) blocks
take precedence.
2019-07-08 21:17:04 +02:00
5662b2c4b3 Add shell.nix file-template 2019-07-08 14:36:38 +02:00
d45b9348c0 Update evil-collection-mode-list #1543 2019-07-08 13:51:11 +02:00
d2991930ae lang/org: minor refactor
- Set file variables sooner
- Change org-tags-exclude-from-inheritance additively, rather than
  destructively
2019-07-08 11:58:58 +02:00
096a3b96cc Update & refactor tools/debugger
- Polish dap-mode support
- Fix realgud autoloads
- Add +debugger/start and +debugger/quit
- Move dap-breakpoints file into doom-etc-dir
- Fix SPC o d
- Add popup rule for realgud:pdb debugger
- Update display-in-popup advice to reflect changes upstream
- Realgud command buffer is auto-killed (and popup closed) when quitting
  the debugger.
- (evil users) Add :debug ex command
2019-07-07 22:01:24 +02:00
f09a2b60c4 lang/rust: move lsp! to local-vars hook
i.e. start lsp-mode as late as possible
2019-07-07 17:39:19 +02:00
71d505b893 Cache doom-modules on doom refresh 2019-07-07 14:10:21 +02:00
b58b5e1d64 Fix auto-removal of builtin-preferred packges 2019-07-07 14:07:41 +02:00
faeefc1775 Add FLAG argument to doom-module-p 2019-07-07 14:07:11 +02:00
ebd53e5664 Allow expansion of stage-restricted forms
The package! family of macros will throw an error if used in the wrong
files. This same check would prevent macroexpand from expanding them, or
prevent them from being evaluated inline.
2019-07-07 13:29:22 +02:00
dd4c70fe93 Add doom/reload-autoloads 2019-07-07 13:20:25 +02:00
63412af9c3 tools/debugger: add node >=v8 support to realgud 2019-07-07 13:12:06 +02:00
abfc8ced21 Add warning re :prefix-map in map! docstring
It really shouldn't be used outside of Doom proper; it has the
capability of destroying other :prefix-map's due to variable/keymap
naming collisions.
2019-07-07 02:00:36 +02:00
51c067cc4d Fix vanilla-doom+ sandbox instance
Now initializes doom-modules correctly and suppresses an undo-tree
error.
2019-07-07 01:58:49 +02:00
7c9e9a3446 Move lsp! to local-vars hooks
- Set lsp-java-server-install-dir
- Use lsp! instead of lsp in lang/cc
2019-07-07 01:58:08 +02:00
9c15bb82f9 Fix hook collisions by setq-hook!
Fixes an edge case where setq-hook! would override the setq hooks of
other calls to setq-hook!

I want to avoid make-symbol/gensym so users can refer to these hook
functions by name, in case users want to remove these hooks by hand, if
necessary (e.g. for debugging purposes).
2019-07-06 23:22:28 +02:00
648e81f765 term/vterm: remove evil config
It's been implemented in evil-collection-vterm.
2019-07-06 23:22:28 +02:00
af7a2d16c4 Clarify argument in after!'s docstring
after! takes a package, not a mode.
2019-07-06 23:22:28 +02:00
70ac4c0cf5 tools/debugger: add rudimentary dap-mode support 2019-07-06 23:22:27 +02:00
563629cbd3 Remove unneeded autoloads 2019-07-06 23:22:27 +02:00
0f0a8a5744 Rewrite custom-set-face!, add custom-theme-set-face!
custom-set-faces! and custom-theme-set-faces! are now drop-in
replacements for custom-set-faces and custom-theme-set-faces with one
major distinction: the latter will wait for the theme to be loaded
before applying the changes, this allows you to use theme-specific APIs
in your face definitions (like doom-color from doom-themes).

You no longer have to think about load order when using these macros.
2019-07-06 23:22:27 +02:00
3b17d767b8 package!: fix the fix fix fix for the :built-in fix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
fixfix   fixfixfixfixfixfixfixfixfixfixfixfi    fixfix
fixfi    fixfixfixfixfixfixfixfixfixfixfixf     fixfix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
fixfix                                       fixfixfix
fixfixfix       everything is fine        fixfixfixfix
fixfixfixfixfix                     fixfixfixfixfixfix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
fixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfixfix
2019-07-05 23:53:56 +02:00
5cabbef6ef tools/lsp: fix company-lsp not being enabled
Due to a load-order issue between company and lsp.
2019-07-05 23:42:06 +02:00
0dab58ef19 package!: fix the fix for :built-in fix
fixfixfix
2019-07-05 23:07:05 +02:00
ecc4e8087c package!: fix :built-in property 2019-07-05 22:30:24 +02:00
0eeb6b5092 term/vterm: add nixos recipes to README 2019-07-05 20:11:25 +02:00
b07c047068 Merge pull request #1540 from TOTBWF/lsp-fsharp
lang/fsharp: add LSP support
2019-07-05 20:11:04 +02:00
63883d575b term/vterm: prefer built-in vterm to elpa
If it's present. Particularly useful for nix-os users who install
Emacs+vterm with this statement:

  systemPackages = with pkgs; [
    ((emacsPackagesNgGen emacs).emacsWithPackages (epkgs: [
      epkgs.emacs-libvterm
    ]))
  ];

Or with home-manager:

  programs.emacs = {
    enable = true;
    extraPackages = epkgs: [ epkgs.emacs-libvterm ];
  };
2019-07-05 20:04:42 +02:00
1f644d07e0 package!: accept 'prefer in :built-in property
This tells Doom's package manager to prefer the built-in package, if it
is present, rather than installing the new version from elpa.
2019-07-05 20:03:37 +02:00
30cd902d4d Make requested changes for F# lsp support 2019-07-05 10:58:55 -07:00
e831607335 Document F# lsp flag 2019-07-05 10:37:16 -07:00
9c950ff3f6 Add LSP support for F# 2019-07-05 10:32:01 -07:00
eb42f95777 tools/lsp: noop lsp! if used more than once 2019-07-05 19:08:11 +02:00
d39500f143 Merge pull request #1537 from chrunchyjesus/cargo-mode
lang/rust: add cargo package & keybinds
2019-07-05 18:01:44 +02:00
daa7107def Fix #1538: C-k in switch-buffer killing buffers
Caused by an upstream change.
2019-07-05 16:50:03 +02:00
6973a8926d tools/lookup: remove duplicate code & minor fixes
- Removes vestigial definition of +lookup/in-docsets, which would throw
  an error.
- Fixes the universal argument for this function.
- Fix multiple set-docsets! calls prepending rather than setting
  dash-docs-docsets.
- Logs search attempts for debugging purposes.
2019-07-05 16:50:03 +02:00
e577ce0162 add b prefix back 2019-07-05 16:15:05 +02:00
301173f35f remove b prefix, small refactor 2019-07-04 21:33:13 +02:00
883c390e2e add documentation regarding some commands 2019-07-04 21:13:21 +02:00
9f37363764 use keybindings from cargo mode 2019-07-04 20:58:44 +02:00
fbf58aac8c lang/org: add +org|init-export to org-load-hook #1535 2019-07-03 16:37:48 +02:00
33aef74da0 Merge pull request #1529 from idanko/go-lsp-priority
lang/go: prioritize lsp over guru
2019-07-03 00:49:23 +02:00
cb783b0609 Prevent hash-table-p errors on startup 2019-07-02 23:17:20 +02:00
d8e7a2003b Fix custom.el writing to DOOMDIR/init.el too early
This would cause ~/.doom.d/init.el to exist before `doom quickstart` can
copy ~/.emacs.d/init.example.el into it, causing some newcomers to
experience a wrong-type-argument: hash-table-p error at startup (and no
modules being enabled).
2019-07-02 23:17:20 +02:00
750f45328a Mark helm/ivy search engine autoloads interactive
Otherwise they don't show up in M-x
2019-07-02 23:17:19 +02:00
78e290b6f6 lang/go: integrate lsp to local-vars hook 2019-07-02 23:23:28 +03:00