Commit Graph

167 Commits

Author SHA1 Message Date
b0a754391a Added stack build support for intero users 2018-07-18 09:11:48 +02:00
6334af8a84 Fix typo 2018-07-18 08:59:07 +02:00
1f9fcd5c10 Lazily load bindings properly 2018-07-18 08:50:55 +02:00
a0f800421e Merge develop 2018-07-18 08:36:29 +02:00
2968374081 lang/haskell: fix haskell-hlint checker
Causing "not a valid syntax checker" errors because it haskell-hlint was
defined too soon.
2018-07-17 23:47:57 +02:00
c233b84520 Add attrap-attrap 2018-07-17 23:43:27 +02:00
f981b9886e Add haskell keybindings 2018-07-17 23:43:08 +02:00
0a4cdf8202 Make haskell-hlint setup DRY 2018-07-17 03:09:45 +02:00
c4a54e0ae6 Merge pull request #758 from patrl/interoHlint
Intero hlint
2018-07-17 02:14:24 +02:00
ab6e18d61b Checks for hlint for dante/intero users 2018-07-16 12:50:20 +02:00
f8581c3206 Added hlint support for intero users 2018-07-16 12:28:41 +02:00
c31bb6a744 Add haskell-mode-jump-to-def-or-tag lookup handler 2018-07-15 20:44:47 +02:00
69c8ef4141 Fix void-function haskell-interactive-mode 2018-07-15 20:44:11 +02:00
e4db3f0020 Insert module file template in haskell files #752
Use file-template module instead of hook so it only gets triggered in a
valid project.
2018-07-14 23:16:39 +02:00
80c4abc8bf Enable haskell-interactive-mode in haskell-mode #752 2018-07-14 23:16:39 +02:00
a76c080930 lang/haskell: improve REPL support #752 2018-07-14 23:16:39 +02:00
bcd930abb7 Reformat haskell packages.el 2018-07-03 03:41:08 +02:00
65d2b01333 Revert "Refuse to enable intero-mode if intero is absent"
This reverts commit 4f40fef592.

This was short sighted. The intero check doesn't find per-project built
instances of intero.
2018-07-03 03:41:08 +02:00
24ac13a804 Remove periods from haskell doctor warnings
It is an Emacs convention not to end errors in punctuation (unless
they're multi-line).
2018-06-27 19:36:42 +02:00
4f40fef592 Refuse to enable intero-mode if intero is absent
Rather than checking for stack.
2018-06-27 19:36:42 +02:00
19400598b4 got rid of hindent as a seperate feature 2018-06-26 19:34:36 +02:00
e727e2041f Added doc check for hindent executable 2018-06-26 19:15:35 +02:00
bec2ad4859 factored hindent out as a seperate feature. 2018-06-26 19:15:07 +02:00
bc124fae11 removed hindent hook 2018-06-26 19:14:31 +02:00
81428f5bcf Fix dante-mode hook #718 2018-06-23 20:02:56 +02:00
2589619793 simplified hook 2018-06-23 17:51:22 +02:00
7627b04f18 Refactored dante feature. 2018-06-23 15:59:03 +02:00
e05d7cfee0 Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling
it on demand. Also fixes void-function: flycheck-mode errors when
:feature syntax-checker is disabled. This is experimental.

Indirectly fixes #710
2018-06-22 01:49:20 +02:00
253fd77b2a Fix intero-goto-definition #683 #684
It wasn't working in the first haskell buffer because of a race
condition. Intero was loading too late to register lookup handlers for
haskell-mode (for the first buffer).

By setting it to intero-mode, it is registered in time for intero-mode's
activation.
2018-06-15 22:16:49 +02:00
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
588359cc5f Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
d8b1e469bc Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
1a452b6842 💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
bb88411cc9 General minor refactor & docstring fixes 2018-05-14 20:55:55 +02:00
135ebd925f Enable global-eldoc-mode; less work for me! 2018-04-23 00:34:03 -04:00
adef00aa7c Don't byte-compile doctor.el files 2018-03-20 21:19:37 -04:00
74c8b1d113 Rewrite doctor; move warn! blocks out in doctor.el files 2018-03-12 13:32:01 -04:00
0cfe8e305e Bring back aggressive loading of autoloads files #446
package-initialize, once again, isn't called on every startup, which
means package autoloads won't be loaded in most interactive sessions, so
must do it manually for certain packages.
2018-03-07 03:01:17 -05:00
3e6d9cf03a lang/haskell: fix ESC ESC keybind in REPL; move company-ghc to +dante 2018-03-01 01:12:23 -05:00
138ec2bf07 Remove manual loading of pkg-autoloads files
No longer necessary as of 0c80bb42
2018-02-28 17:57:30 -05:00
0ccdc065f9 lang/haskell: fail gracefully if stack isn't installed 2018-02-14 07:47:22 -05:00
bac73ec938 Replace warn => warn! 2018-02-14 07:46:38 -05:00
91357a3e5d 💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
42cee2e046 Update :jump => :lookup 2018-01-05 23:57:48 -05:00
e688bd8c85 haskell: Fix warning about ghc-mod
The warning confusingly states that `ghc-mode` couldn't be found, implying it's some kind of emacs mode. However, the predicate is actually checking for the `ghc-mod` executable, which is something entirely different.
2018-01-04 11:06:05 +00:00
c85fd98350 lang/haskell: refactor +dante submodule 2017-12-10 16:59:34 -05:00
b14198dedf Extend byte-compile ;;;###if support to other elisp files 2017-12-10 16:57:51 -05:00
9d81bc5a8b Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05:00
416a6cce21 lang/haskell: update README 2017-10-18 17:55:04 +02:00