Skip to content

Commit

Permalink
Rename flycheck wrapper function
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed May 27, 2023
1 parent 0896c51 commit 43840f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions verilog-ext-flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ https://chipsalliance.github.io/verible/lint.html"
(add-to-list 'flycheck-checkers checker))
(verilog-ext-flycheck-set-linter verilog-ext-flycheck-linter))

(defun verilog-ext-flycheck-mode-toggle (&optional uarg)
(defun verilog-ext-flycheck-mode (&optional uarg)
"`flycheck-mode' Verilog wrapper function.
If called with UARG select among available linters and enable flycheck.
Disable function `eldoc-mode' if flycheck is enabled
to avoid minibuffer collisions."
If called with UARG select among available linters and enable flycheck."
(interactive "P")
(let (enable)
(when buffer-read-only
Expand Down
2 changes: 1 addition & 1 deletion verilog-ext.el
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ FEATURES can be a single feature or a list of features."
(verilog-ext-when-feature 'compilation
(define-key map (kbd "C-c C-p") 'verilog-ext-preprocess))
(verilog-ext-when-feature 'flycheck
(define-key map (kbd "C-c C-f") 'verilog-ext-flycheck-mode-toggle))
(define-key map (kbd "C-c C-f") 'verilog-ext-flycheck-mode))
(verilog-ext-when-feature 'template
(define-key map (kbd "C-c C-t") 'verilog-ext-hydra/body))
(verilog-ext-when-feature 'hierarchy
Expand Down

0 comments on commit 43840f8

Please sign in to comment.