Commit Graph

443 Commits

Author SHA1 Message Date
a6d4341a95 tools/vterm: update README 2019-05-14 22:56:01 -04:00
fb8b7c38d2 Make lookup handlers easier to debug
If debug-mode is on, errors in lookup handlers will not emit a full
backtrace.
2019-05-14 22:26:21 -04:00
b58199ca61 tools/vterm: install vterm from MELPA 2019-05-14 22:02:11 -04:00
9cfbe53d37 Fix "selected dead buffer" errors on gD
Because the popup manager was auto-killing the *xref* buffer (that
ivy-xref closes immediately).
2019-05-14 21:35:30 -04:00
3d53aa5dad Fix google images url for +lookup/online 2019-05-14 15:18:17 -04:00
10f60e7918 tools/magit: add -t/--tags action to magit-fetch 2019-05-13 00:20:06 -04:00
8ec44959c5 tools/lookup: update to reflect changes upstream
counsel-dash no longer depends on helm
2019-05-12 01:45:48 -04:00
f3d2038931 Merge pull request #1377 from pcasaretto/docker-docs
Add a draft for docker module documentation
2019-05-12 00:33:03 -04:00
f97b5b70e3 tools/flyspell: reduce english-centric defaults
Falls back to system defaults, which are a little more reliable.
2019-05-06 19:39:35 -04:00
37f799c4e5 Make plugins a simple list 2019-05-05 19:17:02 -03:00
48b1276ee6 Add TODO tag to Features heading 2019-05-05 19:03:11 -03:00
051f792205 tools/magit: remove +magit-display-popup-buffer
Because magit uses transient now, and other plugins that use magit-popup
don't seem to need it anymore.

And update docstring+comments.
2019-05-04 19:13:26 -04:00
927dcb274d tools/lookup: log handler errors
Silences them unless debug mode is on
2019-05-03 20:45:11 -04:00
d481fc1dd4 tools/lookup: update README & docstrings
And minor reformatting of config.el
2019-05-03 20:44:49 -04:00
96ca04d488 Set lsp lookup handlers rather than remapping them
Now that the lookup module has beter deferred handler support.
2019-05-03 20:03:32 -04:00
d17764366e Rewrite lookup handling
- Rewrite documentation for set-lookup-handlers!
- Remove opening lookup targets in other-window; sorry, but there is no
  consistent, stable way to do this, when many jump handlers are
  asynchronous. If you want to open a jump target in another window,
  create a split beforehand.
- Add support for jump handlers returning 'fail or 'deferred
- Fix xref backends when using async UIs like ivy or helm
- Conditionalize creating a better-jump jump point, and create it in the
  spot we jumped *from*, not where we jumped *to*.
2019-05-02 17:53:59 -04:00
0f21e2b44a Fix lookup handlers not being used #1378 2019-05-02 17:51:51 -04:00
6d314c2795 Revise and update docstrings and comments 2019-05-01 21:02:28 -04:00
4aa65aa019 Move avy, ace-link & ace-window out of core
They don't belong there, and ace-window is no longer a core dependency
anyhow.
2019-05-01 21:02:28 -04:00
adc8fc0ad1 tools/lookup: autoload +lookup-online-backend #1375 2019-04-30 20:22:28 -04:00
b39188406d Add a draft for docker module documentation 2019-04-30 17:34:40 -03:00
ed5d27eee7 tools/lookup: stop prompting for TAGS file 2019-04-30 15:11:23 -04:00
6b21e31df6 tools/lookup: update dumb-jump backend
dumb-jump-go no longer returns a plist, but a file path, on successful
jump.
2019-04-30 15:10:43 -04:00
a4c5396558 Add better-jumper
Replaces evil's jumplist; makes its functionality available for non evil
users.
2019-04-24 18:16:04 -04:00
b189254050 Don't kill magit on ESC (for evil users)
q is enough. An ESC could be accidental (e.g. when ESCing from visual
mode in magit).
2019-04-24 18:16:04 -04:00
77e4cc4d58 💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
d811f58ed2 +lookup/documentation -> lsp-describe-thing-at-point
More reliable in lsp-mode
2019-04-19 20:55:44 -04:00
e7e1383b08 tools/lsp: replace lookup commands w/ lsp-ui-peek 2019-04-16 20:56:52 -04:00
da34862e56 Fix TAB in magit-diff-mode 2019-04-10 18:51:20 -04:00
f9b6f6746f General, minor refactor/reformatting 2019-04-08 23:03:19 -04:00
ffe297bc7f lang/haskell: rewrite README + minor refactor
- Documents lsp-haskell
- Use hie-wrapper on MacOS
- Update tools/lsp README to include :lang haskell
- Mention cabal-new-repl setting (#1140)
2019-04-07 16:46:59 -04:00
a4283427f5 Fix autoloaded hydras
They weren't marked as interactive, making them unavailable for `M-x` or
keybinds.
2019-04-07 16:06:52 -04:00
fa95984427 tools/lsp: add basic README 2019-04-06 01:37:11 -04:00
df748e6cee tools/editorconfig: remove extra indent vars
They were merged upstream in editorconfig/editorconfig-emacs#196

Relevant to: #1283, #1289
2019-04-05 14:23:28 -04:00
cb5abcea0e Add tools/direnv module 2019-04-05 03:16:37 -04:00
dfc21e1157 tools/editorconfig: fix syntax error
Typo introduced in 8cd0a31a
2019-04-05 03:14:13 -04:00
8cd0a31aef Register terra-indent-level with editorconfig 2019-04-05 02:18:16 -04:00
2c81ee4d98 tools/flyspell: minor refactor
- Allow flyspell-correct-* packages to be disabled by the end-user
  without breaking errors.
- Tie proselint detection to flycheck (which is what uses it)
2019-04-02 15:47:09 -04:00
3310f9dfe2 tools/gist: open gists in non-popups
- Removes +gist/kill-cache (gist-list and gist-list-user with a
  universal argument already does this).
- Removes +gist/open-current. No longer necessary when gists aren't
  opened in popups.
- Makes keybinds more consistent with other "porcelains", like elfeed's
  or magit.
2019-04-02 15:47:09 -04:00
7286b32322 Merge pull request #1273 from UndeadKernel/choose_spellchecker
Choose which spell checker flyspell will use
2019-04-02 14:06:22 -04:00
6a99d7840b Correct minor typo in warning message 2019-04-02 14:04:10 -04:00
a08e00c4d4 Refactor aspell/hunspell initialization 2019-04-02 14:03:27 -04:00
79e8a466a3 tools/flycheck: change idle delay behavior
Flycheck will now wait longer to check for errors when the last check
produced no errors, and quicker when there are. It will also avoid
displaying flycheck-posframe if in insert mode (as it can disturb cursor
positioning and change evil state in some edge cases).
2019-04-02 00:52:09 -04:00
5bcab488a7 Add {vc,git-gutter}-mode checks to vc refresher 2019-04-01 13:21:25 -04:00
bdd410cb9c Refresh vc on-demand after quitting magit #1298
To avoid the long delay when you have many buffers open while quitting
magit.
2019-04-01 13:12:00 -04:00
2dc52bc9be 💥 Replace exec-path-from-shell w/ 'bin/doom env'
IMPORTANT: This is a breaking update for Mac users, as your shell
environment will no longer be inherited correctly (with the removal of
exec-path-from-shell). The quick fix is: 'bin/doom env refresh'. Also,
the set-env! autodef now does nothing (and is deprecated), be sure to
remove calls to it in your config.

Smaller changes:
+ This update also adds --no-* switches to doom quickstart
+ Includes general improvements to the documentation of several bin/doom
  commands.
+ Moves doom/reload* commands to core/autoload/config.el
+ doom/reload-project has been removed (it didn't actually do anything)

The breaking change:
This update adds an "envvar file" to Doom Emacs. This file is generated
by `doom env refresh`, populated with variables scraped from your shell
environment (from both non-interactive and interactive sessions). This
file is then (inexpensively) loaded at startup, if it exists.

+ The file is manually generated with `doom env refresh`.
+ It can be regenerated automatically whenever `doom refresh` is run by
  running `doom env enable` (`doom env clear` will reverse this and
  delete the env file).
+ `doom quickstart` will ask if you want to auto-generate this envvar
  file. You won't need it if you're confident Emacs will always be
  started from the correct environment, however.
+ Your env file can be reloaded from a running Emacs session with `M-x
  doom/reload-env`. Note: this won't work if the Emacs session you're
  running it in doesn't have a correct SHELL set. i.e. don't use this to
  create your first env file!

The idea isn't mine -- it's borrowed from Spacemacs -- and was
introduced to me in #1053 by @yurimx. I was impressed with it. Prior to
this, I was unhappy with exec-path-from-shell (no hate to the dev, I
understand its necessity), and 'doom patch-macos' wasn't ideal for mac
users (needed to be reapplied every time you update Emacs). What's more,
many users (even Linux users) had to install exec-path-from-shell
anyway.

This solution suffers from none of their shortcomings. More reliable
than patch-macos, more performant and complete than
exec-path-from-shell, and easily handled by bin/doom.
2019-03-28 01:56:09 -04:00
820d77c546 tools/magit: bind TAB in more magit modes 2019-03-26 03:43:23 -04:00
76f98043f1 flyspell: allow enabling either aspell or hunspell
* Previously, a user could not choose which spell checker to use.
  Instead, the first one found was used.
* This PR adds the flags `+aspell` and `+hunspell` which allow a user to
  choose which spellchcker to use (even if both are installed).
* Report an error if spell checking is enabled but no spell checker
  is found.
2019-03-18 15:59:55 +01:00
fa98551d19 tools/vterm: minor refactor
Don't end warnings in punctuation, and throw error if modules support is
missing.
2019-03-13 20:41:48 -04:00
4715412b5c tools/vterm: remove use-emacs-theme-colors hack
Causes invalid face errors. This will be resolved in doom-themes
instead.
2019-03-13 18:22:09 -04:00