Commit Graph

1391 Commits

Author SHA1 Message Date
3635e23be7 Minor: common-lisp macro expander hydra as default
It is usually the case that we want to easily step through the expansion
of a macro inline, so prevent a modifier key press.
2018-12-01 15:26:44 -05:00
fead537328 Fix: common-lisp module jump hydra conflict
This hydra conflicts with Doom's popup windows in the case a jump
creates a sly-xref-mode buffer. Use direct local leader bindings instead.
2018-12-01 15:25:12 -05:00
7e02cbb17d lang/python: add miniconda3 path 2018-11-14 22:33:18 -08:00
80e53eee5d lang/python: add homebrew miniconda3 path
For `brew cask install miniconda`
2018-11-15 00:55:54 -05:00
a1e8fde75c Removed :select nil from cider-repl popup rules 2018-11-13 21:29:16 -05:00
2f47ab9f28 Merge pull request #1001 from myme/company-psc-ide-backend
purescript: Properly register company backend
2018-11-13 18:19:14 -05:00
412063f452 lang/web: fix 'pair was never defined' error
Caused by recent change upstream, in smartparens
2018-11-12 02:38:09 -05:00
34c490aae5 lang/web: correct config file check for jekyll
Jekyll looks for _config.(yml|toml), not config.yml.
2018-11-07 19:22:03 -05:00
b9b9c629af purescript: Properly register company backend 2018-11-05 20:10:38 +01:00
4029bd7dd0 lang/ocaml: drop bad imenu initialization 2018-10-31 00:03:26 +00:00
81cccbcc51 lang/org: only update parent statistics cookies
This would formerly update _all_ statistics cookies in the org document,
which can be terribly slow in large documents. This restricts that to
just the parent headlines of the subtree the cursor is in.
2018-10-30 16:20:25 -04:00
86305f2175 lang/haskell: just detect evil
Instead of detect the feature/evil module. This is more versatile.
2018-10-24 01:14:35 -04:00
0665d10377 lang/ruby: remove dtrt-indent fix
This was merged upstream
2018-10-24 01:08:31 -04:00
f9d6ee49ee lang/haskell: fix evil keybinds for intero/dante 2018-10-24 01:08:11 -04:00
e0f7ba19cd lang/org: use correct todo on RET
Improves on baa6f640. This fixes RET cycling between different keyword
sets.
2018-10-19 15:44:25 -04:00
8e67e591d6 lang/org: don't conditionally install org-yt
Forgot to update packages.el in b292795.
2018-10-19 12:54:47 -04:00
e8b6887259 lang/rust: remove company-racer
Racer provides completion-at-point integration, which makes
company-racer redundant (and it conflicts with company-capf).
2018-10-18 13:11:28 -04:00
936f13744b lang/org: improve error handling for remote image previews 2018-10-18 12:54:37 -04:00
b2927955e7 lang/org: move org-yt out of +attach in config.el 2018-10-18 12:51:35 -04:00
ecaa8fc7cd lang/org: move custom links into new hook function 2018-10-18 12:50:39 -04:00
99b7b7f740 lang/org: add inline base64/http(s) image support
Adds inline image preview support for http/https links, as well as
base64 encode image support with the img protocol. e.g.

Examples:
[[http://domain.com/some/image.png]]
[[https://raw.githubusercontent.com/hlissner/doom-emacs/screenshots/company.png]]
[[img:iVBORw0KGgoAAAANSUhEUgAAACUAAAAuCAAAAACKMo8cAA...]]
2018-10-17 16:31:23 -04:00
fda4734164 lang/common-lisp: disable fuzzy/flex completions
Fuzzy search is slower and less predictable, and is generally disabled
by default across Doom (or gated behind variables/flags).
2018-10-17 15:01:03 -04:00
baa6f64025 lang/org: use correct todo keyword on M-RET
Previously, new TODO headers created with M-RET or M-S-RET (bound to
+org/insert-item) would use the first TODO keyword in org-todo-keywords
in the new header. This wouldn't necessarily match the previous header.
e.g.

* [ ] Item 1
* TODO |

This fix ensures new headers will preserve the correct header, even if
the previous one is in a DONE state.

* [ ] Item 1
* [ ] |
2018-10-17 01:24:26 -04:00
a1ca5b2850 lang/ocaml: update README
Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-17 00:13:20 +01:00
a4a42d3141 lang/ocaml: enable merlin-imenu and merlin-iedit (part of merlin)
merlin-imenu works nicely with `SPC / i`.

merlin-iedit is a refactoring tool that locates all occurences of an
identifier in scope and you can use multiple cursors to edit.
integration with evil-multiedit could be better.

There is also a merlin-xref backend, but since we got the individual
def/lookup/etc. already bound not sure if it is worth using it.

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-17 00:06:20 +01:00
cdd39b20a5 lang/ocaml: add merlin-eldoc type and doc on hover display
This displays the type and documentation of thing under point
and highlights occurrences automatically when idle. Could be achieved by appropriate use of
keyboard shortcuts already set up by this module.

However `merlin-eldoc` can also display the expected type of function call parameters,
which merlin itself wouldn't.

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-17 00:06:20 +01:00
50b324b683 lang/ocaml: always initialize merlin, but wait for a .merlin file for flycheck
Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-17 00:06:20 +01:00
3d6b30675c lang/ruby: remove redundant add-hook 2018-10-16 17:28:21 -04:00
5ceb64705f lang/ocaml: remove ocamlformat comment
It doesn't apply anymore
2018-10-16 14:02:55 -04:00
d1d9cffcc8 lang/ocaml: major refactor
+ Load flyspell-mode a little later, to allow file/dir-local variables
  to customize flyspell.
+ Ensure setters (in merlin's config) are used as late as possible, by
  making merlin's (and all the other packages) config run after tuareg
  is loaded.
+ As discussed, installing packages locally is a bit unreliable, so I'm
  commenting out the +ocaml-site-lisp flag, and rely solely on packages
  from MELPA.
+ Add optional ocamlformat check in doctor.el and conditionally load the
  ocamlformat package (if editor/format is enabled).
+ Add docstrings to init hooks.
2018-10-16 02:49:21 -04:00
3c77b0d260 lang/common-lisp: add settings & minor refactor
Thanks to @mfiano
2018-10-16 02:49:21 -04:00
cb33d96bfa lang/clojure: fix +clojure/repl
cider-jack-in takes one argument.

Reported by @mfiano
2018-10-16 02:49:21 -04:00
036a645058 lang/clojure: move command to autoload.el 2018-10-16 02:49:21 -04:00
94187d7326 Merge pull request #963 from mfiano/develop
lang/clojure: More changes
2018-10-16 02:07:19 -04:00
bef0f39535 lang/clojure: conform command to naming convention
Interactive commands in doom follow the `+module/name` naming convention. `+module|name` is used for hook functions.
2018-10-16 02:07:00 -04:00
4fc7de442e lang/clojure: group & update evil integration
Also removes evil-normalize-keymaps on cider-repl-mode-hook, because cider-repl-mode isn't a minor mode. The purpose of evil-normalize-keymaps is to ensure evil is aware of evil keybinds in minor-mode keymaps when it is first enabled.
2018-10-16 02:03:23 -04:00
a25257d8da lang/clojure: remove fuzzy completion for company
I prefer that fuzzy search is disabled by default, for consistency and performance. Fuzzy search tends to be much significantly slower, and no other company backend offers a fuzzy search mechanism (or should).

Fuzzy search is usually gated behind variables and flags, but since opting in here is a trivial one-liner, I don't think it needs one.
2018-10-16 01:55:38 -04:00
90140f1ab5 Add vala-mode 2018-10-16 06:22:34 +03:00
bd1f2ec4d6 lang/clojure: More changes
- Add a popup rule for the history buffer, since we want to see the REPL change while it's open
- Add hooks to enable company fuzzy completion
- Add more cider configuration options
- Configure Shift-Return to insert a newline and indent in the REPL without submitting the result
- Bind normal state keybindings for the CIDER history buffer
2018-10-15 23:08:59 -04:00
76da5b44d1 Merge pull request #905 from edwintorok/ocaml
OCaml module improvements
2018-10-15 22:45:39 -04:00
8577804a03 Merge pull request #945 from patrl/capture-tweaks
Capture template tweaks
2018-10-15 22:44:52 -04:00
53cf2b4e2b Restore space in personal todo checkbox 2018-10-15 22:44:39 -04:00
5ad27da2f1 lang/clojure: add binding to switch/set namespace
Add a local leader keybinding to both switch to the CIDER REPL buffer and set the namespace according to the file buffer.
2018-10-15 18:43:56 -04:00
f2de08d799 lang/common-lisp: move mrepl history file
To doom-cache-dir.

Credit to @mfiano
2018-10-15 16:22:53 -04:00
db7632b2b6 lang/clojure: persist cider repl history
Credit to @mfiano
2018-10-15 16:22:53 -04:00
cade77e4a9 lang/clojure: bind cider-jack-in to clojure-mode
cider-quit kills cider-mode, rendering cider-mode-map keybinds
unavailable, so these commands have been moved to clojure-mode-map, to
ensure they're always available.

Reported by @mfiano
2018-10-15 16:22:53 -04:00
064579e33e Improve ocaml language support
See README.org.

Signed-off-by: Edwin Török <edwin@etorok.net>
2018-10-15 20:37:58 +01:00
7cb1e489dc Revert personal TODO back to checkbox in capture template 2018-10-15 13:39:24 +02:00
476782e6d4 Merge pull request #959 from theSuess/develop
Updated documentation to use better gocode fork (again)
2018-10-15 03:29:08 -04:00
12ea77f937 Updated to prefered gocode fork (again) 2018-10-15 09:26:47 +02:00