I am using verilog mode for Emacs. I am trying to find which begin
is paired with which end
. Is there any way to do this in Emacs?
Asked
Active
Viewed 655 times
0
3 Answers
1
Use M-x verilog-begin-of-defun
and M-x verilog-end-of-defun
which you can bind to a key in your init file like:
(eval-after-load 'verilog-mode
'(define-key verilog-mode-map (kbd "C-{") 'verilog-beg-of-defun))
and:
(eval-after-load 'verilog-mode
'(define-key verilog-mode-map (kbd "C-}") 'verilog-end-of-defun))
that will bind C-{
and C-}
to beginning and end.

manandearth
- 2,068
- 1
- 11
- 23
0
If you are an evil user you can use evil-matchit to jump between verilog tags.

Prgrm.celeritas
- 849
- 6
- 15
0
Standard motions by defuns seem to work in this mode just fine. You can simply use C-M-a and C-M-e to move to beginnings and ends respectively.