File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 212
212
213
213
; ; Structured editing and navigation in Emacs with Tree-Sitter
214
214
(use-package combobulate
215
- :straight (:host github :repo " mickeynp/combobulate" :nonrecursive t ) ; Cloning the `html-ts-mode' submodule causes problems
215
+ :straight (combobulate
216
+ :host github
217
+ :repo " mickeynp/combobulate"
218
+ :nonrecursive t ; Cloning the `html-ts-mode' submodule causes problems
219
+ :files (:defaults (:exclude " combobulate.el" ))) ; TEMP: The "combobulate.el" contains a lot of autoloads that prevent lazy loading
216
220
:when (and (not os/win) (+emacs-features-p 'tree-sitter )) ; TEMP: disable on Windows
217
221
:custom
218
222
(combobulate-key-prefix " C-c o" )
219
223
:config
224
+ ; ; Basically, load the same features that would be loaded by "combobulate.el"
225
+ (dolist (feature '(combobulate-rules combobulate-procedure combobulate-navigation
226
+ combobulate-manipulation combobulate-envelope combobulate-display
227
+ combobulate-ui combobulate-misc combobulate-query combobulate-cursor
228
+ combobulate-toml combobulate-html combobulate-python combobulate-js-ts
229
+ combobulate-css combobulate-yaml combobulate-json combobulate-go))
230
+ (require feature))
231
+
220
232
; ; The "M-<up/down/left/right>" keys are used globally by `drag-stuff' , lets
221
233
; ; unset them for `combobulate' and use "M-S-<up/down/left/right>" instead.
222
234
(mapc (lambda (k ) (keymap-unset combobulate-key-map k 'remove )) '(" M-<up>" " M-<down>" " M-<left>" " M-<right>" ))
You can’t perform that action at this time.
0 commit comments