0

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?

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.

0

If you are an evil user you can use evil-matchit to jump between verilog tags.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.