emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New defun navigation for tree-sitter (Was: Code navigation for sh-mo


From: Yuan Fu
Subject: Re: New defun navigation for tree-sitter (Was: Code navigation for sh-mode with Tree-sitter)
Date: Thu, 15 Dec 2022 17:49:44 -0800


> On Dec 13, 2022, at 11:46 AM, João Paulo Labegalini de Carvalho 
> <jaopaulolc@gmail.com> wrote:
> 
> 
> 
> On Tue, Dec 13, 2022 at 11:56 AM Yuan Fu <casouri@gmail.com> wrote:
> I will repurpose two functions, treesit-beginning-of-defun/end, and make 
> treesit-major-mode-setup set them up automatically. I’m thinking about 
> remapping beginning/end-of-defun to their tree-sitter counterparts in 
> (current-local-map), in treesit-major-mode-setup. That way major modes don’t 
> need to explicitly bind tree-sitter functions in their keymaps. 
> 
> That would be great. A very clean solution IMO. 

No one seem to object, so I made the change on emacs-29. Now tree-sitter major 
modes should all use the new navigation commands.

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]