Commit Graph

550 Commits

Author SHA1 Message Date
92c839be02 tools/magit: warn if emacsql fails to build #1751 2019-09-03 15:47:38 -04:00
e996216714 Have lsp! return non-nil if successful
And fix an issue where +javascript-init-lsp-or-tide-maybe-h would
reference lsp-mode in the rare case where lsp-mode isn't defined (likely
because the user forgot to run `doom refresh` after enabling the :tools
lsp module).
2019-09-02 21:43:12 -04:00
abc80e43ae tools/magit: disable magit-todos over TRAMP 2019-09-02 13:14:52 -04:00
ccaf92b0d3 tools/magit: don't kill all magit buffers when quitting one
And mark all outdated buffers, rather than just the ones in the current
workgroup.
2019-08-28 15:22:14 -04:00
880c581c0d tools/direnv: add README 2019-08-27 12:50:10 -04:00
6c4d8cd408 tools/pdf: display retina images on Emacs NS-port #1667
* Advice pdf-tools to display retina image on Mac
* Apply to other functions
* hotfix
* remove redundant advice
2019-08-27 00:36:20 -04:00
a9b5640d1f tools/direnv: remove redundant focus-in hook
It's redundant with doom-switch-frame-hook
2019-08-27 00:09:50 -04:00
8766499b0d Fix some file permissions errors
Occurs when deferred packages are loaded while in an unreadable or
non-existent directory.
2019-08-27 00:05:12 -04:00
8b94f325b2 Remove 'append' entry in doom-escape-hook 2019-08-19 12:29:51 -04:00
3e7bcda04a tools/debugger: Add rust binding for dap-lldb (#1677)
* Add Rust binding to dap-mode in :tools debugger
* Fix missing ).
2019-08-17 16:03:57 -04:00
67b15041bc Add +lsp-company-backend variable
To allow users to customize what backend(s) to use for lsp-mode buffers.
2019-08-15 14:59:53 -04:00
9ab49be564 Fix "fatal: no names found" errors on 'doom rebuild'
Some packages that depend on org (like elfeed) will load the built-in
org early in the rebuild/package install process, which causes org to
define org-release and org-git-version, sometimes overwriting our stubs
for it. Without our hack, org call 'git describe' in the org repo in an
attempt to determine the installed version, which won't work in a sparse
clone. To ensure future definitions never overwrite ours, we advise them
as well.

Also moves magit-version hack to its autoload file, for consistency with
org's hacks.
2019-08-07 16:31:45 -04:00
3423974234 Minor refactors & tweaks across the board 2019-08-06 14:50:42 -04:00
d82794665a tools/docker: Update README.org
- Proofread a bit
- Add #+SINCE: v2.0.9
- Change some formatting to proper Org syntax
2019-07-30 15:22:19 +03:00
96f2b5dbf6 tools/ansible: don't init submodules
emacs-ansible pulls in ansible; which takes a long time to download and
isn't needed.
2019-07-29 17:24:20 +02:00
9b5dce1c56 Refactor lsp! function 2019-07-29 03:18:38 +02:00
37739a2501 tools/flyspell: don't spellcheck org blocks 2019-07-29 03:18:38 +02:00
19ecf8e46a Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
19dd4e8db8 Correct more inline hook defuns 2019-07-28 02:32:25 +02:00
60a87b444c Merge pull request #1601 from filalex77/elixir-ls
Add support for Elixir LSP via elixir-ls
2019-07-27 03:24:39 +02:00
887a36aacf Add support for Elixir LSP via elixir-ls
- Document Elixir with LSP via elixir-ls
- Add ~+lsp~ flag to ~:lang elixir~
2019-07-26 22:17:01 +03:00
05f7565a57 Merge pull request #1597 from ar1a/straight-lsp-company
tools/lsp: cache company candidates automagically
2019-07-26 20:33:28 +02:00
21f1a50436 tools/lsp: cache company candidates automatically 2019-07-27 04:28:22 +10:00
a3e262c7ac 💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
82ae3a73f3 def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
8aa7772e4e tools/lsp: prevent ~/.emacs.d/lsp-cache creation #1587
And prefix lsp folders with "lsp-".
2019-07-23 16:51:57 +02:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
271920b42a tools/wakatime: conform to new conventions 2019-07-23 00:01:13 +02:00
38d06446ba tools/pdf: conform to new conventions 2019-07-23 00:00:08 +02:00
0ab14efce2 tools/prodigy: conform to new conventions 2019-07-22 23:59:25 +02:00
763262b2a3 tools/pass: conform to new conventions 2019-07-22 23:58:16 +02:00
d307de8297 tools/macos: conform to conventions 2019-07-22 23:54:43 +02:00
6cda303ae6 tools/lookup: conform to new conventions 2019-07-22 23:51:13 +02:00
a264185f74 tools/gist: conform to new conventions 2019-07-22 23:51:12 +02:00
287e61a72c tools/flyspell: conform to new conventions 2019-07-22 23:51:12 +02:00
90f5128de2 tools/flycheck: conform to new conventions 2019-07-22 23:51:12 +02:00
7562d29d4b tools/eval: conform to new conventions 2019-07-22 23:51:12 +02:00
28aead72ef tools/editorconfig: conform to new conventions 2019-07-22 23:51:12 +02:00
8e09b8b7fe tools/debugger: conform to new advice conventions 2019-07-22 23:51:12 +02:00
8e096f7a23 tools/direnv: conform to new hook conventions 2019-07-22 23:51:12 +02:00
d7ed52f3c7 Add ui/hydra module
And conforms all existing hydras to the naming convention for
interactive commands, e.g.

  +vc-gutter-hydra -> +vc/gutter-hydra
2019-07-22 23:51:12 +02:00
6b5d65b55b tools/magit: reuse magit-status window
Instead of opening the same buffer in a new window.
2019-07-22 04:01:18 +02:00
951a414ca4 tools/lsp: disable unneeded sideline/eldoc features 2019-07-22 02:37:47 +02:00
060ede0e2e General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
2019-07-22 02:37:45 +02:00
ff5769f117 Remove reference to removed cache library 2019-07-22 02:37:44 +02:00
cbafa6b749 tools/magit: add -r option to magit-pull 2019-07-22 02:37:44 +02:00
a55a71b8ce tools/magit: recognize ~/.config/git/credential 2019-07-22 02:37:44 +02:00
72f97be86f tools/magit: magit-save-repository-buffers = nil
Autosaving our buffers can trigger unwanted side-effects, like save
hooks and formatters, which is too magical. Instead, trust the user to
know what they're doing.
2019-07-22 02:30:41 +02:00
ce4b8940ca tools/magit: revise default window management for magit
The former default display function would strive to open windows below
the current magit window (splitting it), but this would stack and
quickly become cramped. The behavior is now to reuse the same
window *unless* you're opening the process buffer or from the commit
window.
2019-07-22 02:30:41 +02:00
ba26ce39fe tools/magit: lazily compile emacsql
Prevents the emacsql binary from being built just because you tried
literally anything remotely to do with magit.
2019-07-22 02:30:41 +02:00