Commit graph

22 commits

Author SHA1 Message Date
Henrik Lissner
a70e634ebd
refactor(:lang): move tree-sitter init
Moved add-hook calls (for tree-sitter initialization) into their
respective modes' config blocks, or nearby, to be consistent with how
other, similar tools (like lsp!) are initialized, and does so at
runtime, rather than at expansion/compile time, which eval-when! caused.
2022-07-25 17:34:44 +02:00
Jeetaditya Chatterjee
7f814e5d99
refactor(:lang): redo tree-sitter hooks
- bind to major-mode-local-vars-hook instead of major mode hook
- bind the autodef tree-sitter! instead of the functions.
2022-05-22 21:26:08 +01:00
Jeetaditya Chatterjee
0c2f986708
feat(:lang): enable ts text objs in modes 2022-05-22 21:26:03 +01:00
Jeetaditya Chatterjee
06ed5ade3f
refactor!(tree-sitter): add +tree-sitter flag
BREAKING CHANGE: break the global nature of the tree sitter
module by adding a +tree-sitter flag to every applicable module

In the background this hooks turn-on-tree-sitter-mode
to the major-mode-hook of the language.
This may also solve the eager loading of tree sitter
2022-05-22 21:26:00 +01:00
bottomtype
1fa4516cad add definition lookup handler to agda module 2020-09-28 02:10:29 +02:00
Henrik Lissner
c483a7f7bd
lang/agda: load agda2 if +local #2203 2019-12-18 10:12:41 -05:00
Henrik Lissner
f95ab47239
lang/agda: add +local flag & :nonrecursive to recipes
Relevant to #2203
2019-12-17 15:28:34 -05:00
Henrik Lissner
8d50280168
lang/agda: reformat map! call
To match other uses of map!
2019-09-07 19:57:58 -04:00
Rudi Grinberg
88fc054919 Use straight for agda
We can fetch the mode directly from straight. There's no need to rely on
having this .el file installed for us. Now agda's el files can be edited
directly like all other emacs packages.

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-08-31 09:45:13 +07:00
Rudi Grinberg
d29431d10f Fix keybinding for agda's auto
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-08-27 14:12:05 +07: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
Nicolas Wu
4bcaa28681
Add agda2-next-goal and agda2-previous-goal
Add support for commonly used movements (https://agda.readthedocs.io/en/v2.5.4.1/tools/emacs-mode.html)
2019-04-23 00:13:54 +01:00
Henrik Lissner
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
Patrick Elliott
c23fe02869
Remove syntax highlighting 2018-09-21 14:52:42 +02:00
Patrick Elliott
818df0afe4
More keybindings 2018-09-03 16:11:08 +02:00
Patrick Elliott
57415658a0
More syntax highlighting 2018-09-03 16:00:40 +02:00
Patrick Elliott
17f0b4c50e
Update syntax highlighting 2018-09-03 15:45:43 +02:00
Patrick Elliott
82651f247e
Fix syntax highlighting 2018-09-03 13:54:49 +02:00
Patrick Elliott
f6d6096bf2
load agda input method; bypass agda2; keybindings 2018-08-25 17:27:42 +02:00
Henrik Lissner
f6dbc00bc4
Fix agda-mode executable typo 2018-08-22 03:53:19 +02:00
Henrik Lissner
06262fef17
Lazy-load agda2; more robust +agda-dir resolution 2018-08-22 03:52:53 +02:00
Patrick Elliott
b3a83daf5f
Added basic agda support. 2018-08-21 12:46:29 +02:00