Commit Graph

32 Commits

Author SHA1 Message Date
0fafba7ee1 Merge pull request #2685 from kenranunderscore/change-obsolete-binding
Replace obsolete elisp function in dante-mode
2020-03-09 14:04:25 -04:00
4f9b49ad8f Replace obsolete elisp function in dante-mode 2020-03-09 09:40:22 +01:00
12094788d7 Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
199a6fab79 Fix typos 2019-12-01 22:31:19 -05: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
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
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
69ed1a4a99 feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
499877fcff lang/haskell: restore modified flag after flycheck
Dante quietly saves the current buffer (without triggering save hooks)
before invoking flycheck, unexpectedly leaving the buffer in an
unmodified state.

This is annoying if we depend on save hooks to do work on the
buffer (like reformatting), so we restore a (false) modified state.
2019-02-21 19:13:36 -05:00
d68ecb7636 lang/haskell: fix dante completion 2019-01-21 06:21:09 +11:00
3f195614d9 Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
f9d6ee49ee lang/haskell: fix evil keybinds for intero/dante 2018-10-24 01:08:11 -04:00
fd19698927 doom|hack-local-variables => MODE-local-vars-hook
Uses a less destructive method (the same that Spacemacs uses) than the
one introduced in 13cee68, by introducing MODE-local-vars-hook hooks,
which run after local vars have been initialized.

The old method was to call `hack-local-variables` *before* mode hooks
run, however, this causes variables set by modes to have higher
precedence than local vars, which is unacceptable.

Also moved intero-mode & dante-mode to haskell-mode-local-vars-hook
2018-09-29 15:01:35 -04:00
96ecadf9e6 Re-order blocks 2018-07-19 11:05:31 +02:00
c51b088c6e Remove attrap def-package 2018-07-19 11:04:48 +02:00
406e8f31f6 Move dante mode map 2018-07-19 11:03:16 +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
0a4cdf8202 Make haskell-hlint setup DRY 2018-07-17 03:09:45 +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
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
74c8b1d113 Rewrite doctor; move warn! blocks out in doctor.el files 2018-03-12 13:32:01 -04:00
3e6d9cf03a lang/haskell: fix ESC ESC keybind in REPL; move company-ghc to +dante 2018-03-01 01:12:23 -05:00
bac73ec938 Replace warn => warn! 2018-02-14 07:46:38 -05: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
061e71a846 [breaking] lang/haskell: refactor + require flags #158
The +intero/+dante module flags are now required; there is no default.
2017-10-03 02:57:00 +02:00
56382f1215 lang/haskell: add intero support #158
To use dante instead, change `haskell` to `(haskell +dante)` in
~/.emacs.d/init.el.
2017-08-09 14:52:48 +02:00