mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 14:30:50 -08:00
hideshow: Rework previous changes
* doc/emacs/programs.texi (Hideshow): * etc/NEWS: Fix doc. * lisp/progmodes/hideshow.el: Update Commentary Header. (hs-modes-alist): Remove. (hs--get-mode-value, hs-grok-mode-type): Rework. * lisp/treesit.el (treesit-major-mode-setup): * lisp/emacs-lisp/lisp-mode.el: * lisp/nxml/nxml-mode.el: * lisp/progmodes/cc-mode.el: * lisp/progmodes/f90.el: * lisp/progmodes/fortran.el: * lisp/progmodes/hideshow.el: * lisp/progmodes/icon.el: * lisp/progmodes/js.el: * lisp/progmodes/lua-mode.el: * lisp/progmodes/python.el: * lisp/progmodes/verilog-mode.el: * lisp/progmodes/vhdl-mode.el: * lisp/textmodes/bibtex.el: * lisp/textmodes/mhtml-mode.el: * lisp/textmodes/sgml-mode.el: * lisp/treesit.el: Fix and rework previous changes.
This commit is contained in:
parent
2c41bfabbc
commit
cc589d7003
18 changed files with 228 additions and 243 deletions
|
|
@ -4363,12 +4363,9 @@ Key bindings specific to `verilog-mode-map' are:
|
|||
(when (and (boundp 'which-func-modes) (listp which-func-modes))
|
||||
(add-to-list 'which-func-modes 'verilog-mode))
|
||||
;; hideshow support
|
||||
(when (boundp 'hs-modes-alist)
|
||||
(unless (assq 'verilog-mode hs-modes-alist)
|
||||
(setq hs-modes-alist
|
||||
(cons '(verilog-mode (beg . "\\<begin\\>") (end . "\\<end\\>")
|
||||
(forward-fn . verilog-forward-sexp-function))
|
||||
hs-modes-alist))))
|
||||
(setq-local hs-block-start-regexp "\\<begin\\>")
|
||||
(setq-local hs-block-end-regexp "\\<end\\>")
|
||||
(setq-local hs-forward-sexp-func #'verilog-forward-sexp-function)
|
||||
|
||||
(add-hook 'completion-at-point-functions
|
||||
#'verilog-completion-at-point nil 'local)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue