about summary refs log tree commit diff
path: root/users/Profpatsch/emacs-tree-sitter-move/tmp.el
blob: fa13da120772b4ea2a5293a6874e582496ae9291 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(tree-sitter-load
 'python
 (format "%s/bin/python"
         (getenv "TREE_SITTER_GRAMMAR_DIR")))

(setq tree-sitter-major-mode-language-alist
      '((python-mode . python)))


(define-key evil-normal-state-map (kbd "C-.") #'tree-sitter-move-reset)
(define-key evil-normal-state-map (kbd "C-<right>") #'tree-sitter-move-right)
;; (define-key evil-normal-state-map (kbd "C-<left>") 'sp-backward-parallel-sexp)
;; (define-key evil-normal-state-map (kbd "C-<down>") 'sp-down-sexp)
;; (define-key evil-normal-state-map (kbd "C-<up>") 'sp-backward-up-sexp)