mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Use derived-mode-p to check for sgml-mode-ishness.
This commit is contained in:
parent
b218a13cf7
commit
bc8af45bfe
@ -335,7 +335,7 @@ With prefix, it behaves the same as original `mc/mark-all-like-this'"
|
|||||||
|
|
||||||
(defun mc--no-region-and-in-sgmlish-mode ()
|
(defun mc--no-region-and-in-sgmlish-mode ()
|
||||||
(and (not (use-region-p))
|
(and (not (use-region-p))
|
||||||
(memq major-mode '(sgml-mode html-mode))))
|
(derived-mode-p 'sgml-mode)))
|
||||||
|
|
||||||
(defun mc--in-defun ()
|
(defun mc--in-defun ()
|
||||||
(bounds-of-thing-at-point 'defun))
|
(bounds-of-thing-at-point 'defun))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user