Add "`ifdef" into "verilog-beg-block-re-ordered"
For my useage, use tab to trigger the hide/show or indent function
(defun my-hideshowvis-fringe ()
(interactive )
(end-of-line)
(if (save-excursion
(end-of-line 1)
(or (hs-already-hidden-p)
(progn
(forward-char 1)
(hs-already-hidden-p))))
(hs-show-block)
(hs-hide-block)
;; (beginning-of-line)
))
By contributing you agree this code will be licensed under the GNU Public License.
Please check your github name is set to your real name (click on your avatar icon in upper right, then "settings" then "Name".) This should match your system's ~/.gitconfig user name.
Add "`ifdef" into "verilog-beg-block-re-ordered" For my useage, use tab to trigger the hide/show or indent function (defun my-hideshowvis-fringe () (interactive ) (end-of-line) (if (save-excursion (end-of-line 1) (or (hs-already-hidden-p) (progn (forward-char 1) (hs-already-hidden-p)))) (hs-show-block) (hs-hide-block) ;; (beginning-of-line) ))
(defun my-verilog-indent/hs () "work around
electric-verilog-tab', indent or hide/show fring. If
buffer-read-only' is non-nil, executemy-hideshowvis-fringe'. If
electric-verilog-tab' don't change position, execute `my-hideshowvis-fringe'. " (interactive) (if (or buffer-read-only (let* ((old-position (point)) (new-position (progn (electric-verilog-tab) (point)))) (= old-position new-position)) ) (my-hideshowvis-fringe)))(define-key verilog-mode-map "\t" 'my-verilog-indent/hs)
We appreciate your contributing to Verilog-Mode.
By contributing you agree this code will be licensed under the GNU Public License.
Please check your github name is set to your real name (click on your avatar icon in upper right, then "settings" then "Name".) This should match your system's ~/.gitconfig user name.