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?

3 Answers 3


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))


(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.


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


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 and acknowledge you have read our privacy policy.

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