Commit graph

1009 commits

Author SHA1 Message Date
Henrik Lissner
86928e425b
lang/pdf: fix wrong-num-of-args error for MacOS users 2019-09-21 14:19:56 -04:00
Henrik Lissner
bad0dba1fc
tools/magit: refactor magit-version advice
Not strictly necessary, but more correct.
2019-09-20 17:18:16 -04:00
Henrik Lissner
fccafff291
tools/pdf: install epdfinfo on load #1788
Reverses 4f7bf8b
2019-09-20 01:19:40 -04:00
Henrik Lissner
d5ecfd3429
Move pdf-tools popup rules to tools/pdf 2019-09-19 18:55:44 -04:00
Henrik Lissner
a0826447f5
tools/pdf: refactor retina support advice #1667 2019-09-19 18:39:09 -04:00
Henrik Lissner
4f7bf8b976
tools/pdf: don't install pdf-tools on load
Now that pdf-tools-install compiles epdfinfo asynchronously, pdf files
are loaded before it is finished, yielding errors while pdf-view-mode
initializes. There is currently no effective workaround;
pdf-tools-install must be executed manually.
2019-09-15 16:16:46 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
d0e3bc3455
Fix #1765: enabling tide when lsp is active 2019-09-08 19:20:42 -04:00
Henrik Lissner
70c60e6583
tools/magit: re-enable magit-todos over tramp
Reverts 9ab49be. TRAMP support was added in
alphapapa/magit-todos@a80dace
2019-09-07 19:57:58 -04:00
Henrik Lissner
92c839be02
tools/magit: warn if emacsql fails to build #1751 2019-09-03 15:47:38 -04:00
Henrik Lissner
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
Henrik Lissner
abc80e43ae
tools/magit: disable magit-todos over TRAMP 2019-09-02 13:14:52 -04:00
Henrik Lissner
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
Henrik Lissner
880c581c0d
tools/direnv: add README 2019-08-27 12:50:10 -04:00
Alexander Fu Xi
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
Henrik Lissner
a9b5640d1f
tools/direnv: remove redundant focus-in hook
It's redundant with doom-switch-frame-hook
2019-08-27 00:09:50 -04:00
Henrik Lissner
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
Henrik Lissner
8b94f325b2
Remove 'append' entry in doom-escape-hook 2019-08-19 12:29:51 -04:00
Julian DeMille
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
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
3423974234
Minor refactors & tweaks across the board 2019-08-06 14:50:42 -04:00
Oleksii Filonenko
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
Henrik Lissner
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
Henrik Lissner
9b5dce1c56
Refactor lsp! function 2019-07-29 03:18:38 +02:00
Henrik Lissner
37739a2501
tools/flyspell: don't spellcheck org blocks 2019-07-29 03:18:38 +02:00
Henrik Lissner
19ecf8e46a
Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
Henrik Lissner
19dd4e8db8
Correct more inline hook defuns 2019-07-28 02:32:25 +02:00
Henrik Lissner
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
Oleksii Filonenko
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
Henrik Lissner
05f7565a57
Merge pull request #1597 from ar1a/straight-lsp-company
tools/lsp: cache company candidates automagically
2019-07-26 20:33:28 +02:00
Aria Edmonds
21f1a50436
tools/lsp: cache company candidates automatically 2019-07-27 04:28:22 +10:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
8aa7772e4e
tools/lsp: prevent ~/.emacs.d/lsp-cache creation #1587
And prefix lsp folders with "lsp-".
2019-07-23 16:51:57 +02:00
Henrik Lissner
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
Henrik Lissner
271920b42a
tools/wakatime: conform to new conventions 2019-07-23 00:01:13 +02:00
Henrik Lissner
38d06446ba
tools/pdf: conform to new conventions 2019-07-23 00:00:08 +02:00
Henrik Lissner
0ab14efce2
tools/prodigy: conform to new conventions 2019-07-22 23:59:25 +02:00
Henrik Lissner
763262b2a3
tools/pass: conform to new conventions 2019-07-22 23:58:16 +02:00
Henrik Lissner
d307de8297
tools/macos: conform to conventions 2019-07-22 23:54:43 +02:00
Henrik Lissner
6cda303ae6
tools/lookup: conform to new conventions 2019-07-22 23:51:13 +02:00
Henrik Lissner
a264185f74
tools/gist: conform to new conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
287e61a72c
tools/flyspell: conform to new conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
90f5128de2
tools/flycheck: conform to new conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
7562d29d4b
tools/eval: conform to new conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
28aead72ef
tools/editorconfig: conform to new conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
8e09b8b7fe
tools/debugger: conform to new advice conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
8e096f7a23
tools/direnv: conform to new hook conventions 2019-07-22 23:51:12 +02:00
Henrik Lissner
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