-;; Time-stamp: <2015-11-04 11:38:11 kmodi>
+;; Time-stamp: <2016-02-19 17:12:10 kmodi>
 
 ;; Verilog
 
 ;; Contents:
 ;;
 ;;  Variables
-;;  modi/verilog-find-module-instance
-;;  modi/verilog-get-header
-;;  modi/verilog-jump-to-header-dwim
-;;  modi/verilog-which-func
-;;  modi/verilog-update-which-func-format
-;;  modi/verilog-jump-to-module-at-point
-;;  modi/verilog-find-parent-module
-;;  my/verilog-selective-indent
+;;  Functions
+;;    modi/verilog-find-module-instance
+;;    modi/verilog-get-header
+;;    modi/verilog-jump-to-header-dwim (interactive)
+;;    which-func
+;;      modi/verilog-which-func
+;;      modi/verilog-update-which-func-format
+;;    modi/verilog-jump-to-module-at-point (interactive)
+;;    modi/verilog-find-parent-module (interactive)
+;;    my/verilog-selective-indent
 ;;  imenu support
 ;;  hideshow
 ;;  hydra-verilog-template
 ;;  my/verilog-mode-customizations
+;;  Key bindings
 
 (use-package verilog-mode
   :load-path "elisp/verilog-mode"

      "Generic regular expression to parse Verilog elements for `imenu'.")

;;; hideshow
    (with-eval-after-load 'setup-fold
      (add-to-list 'hs-special-modes-alist
                   `(verilog-mode ,(concat "\\b\\(begin"
                                           "\\|task"

                                        "\\b" keyword "\\b"))))
        (setq cnt (1+ cnt))))

;;; Functions

    (defvar-local modi/verilog-which-func-xtra nil
      "Variable to hold extra information for `which-func' to show in the
mode-line. For instance, if point is under \"module top\", `which-func' would
show \"top\" but also show extra information that it's a \"module\".")

;;;; modi/verilog-find-module-instance
    (defun modi/verilog-find-module-instance (&optional fwd)
      "Return the module instance name within which the point is currently.

If FWD is non-nil, do the verilog module/instance search in forward direction;
otherwise in backward direction.

This function updates the local variable `modi/verilog-which-func-xtra'.

For example, if the point is as below (indicated by that rectangle), \"u_adder\"
is returned and `modi/verilog-which-func-xtra' is updated to \"adder\".

   adder u_adder
   (
    ▯
    );"
      (let (instance-name return-val) ; return-val will be nil by default
        (setq-local modi/verilog-which-func-xtra nil) ; reset
        (save-excursion
