Skip to main content
added 1 character in body
Source Link
Adobe
  • 1.9k
  • 14
  • 27

Try the following:

(defun nxml-jump-to-closing-tag ()
  (interactive)
  (forward-char 2)
  (if (search-backward "<" nil t)
      (nxml-forward-element)
    (message "No more elements")
    )
  )

(defun nxml-jump-to-openning-tag ()
  (interactive)
  (backward-char 2)
  (if (search-forward ">" nil t)
      (nxml-backward-element)
    (message "No more elements")
    )
  )

(define-key nxml-mode-map (kbd "<C-M-right>") 'nxml-jump-to-closing-tag)
(define-key nxml-mode-map (kbd "<C-M-left>")  'nxml-jump-to-openning-tag)

Press C-M-←. Press C-M-→ to get back.

Try the following:

(defun nxml-jump-to-closing-tag ()
  (interactive)
  (forward-char 2)
  (if (search-backward "<" nil t)
      (nxml-forward-element)
    (message "No more elements")
    )
  )

(defun nxml-jump-to-openning-tag ()
  (interactive)
  (backward-char 2)
  (if (search-forward ">" nil t)
      (nxml-backward-element)
    (message "No more elements")
    )
  )

(define-key nxml-mode-map (kbd "<C-M-right>") 'nxml-jump-to-closing-tag)
(define-key nxml-mode-map (kbd "<C-M-left>") 'nxml-jump-to-openning-tag)

Press C-M-←. Press C-M-→ to get back.

Try the following:

(defun nxml-jump-to-closing-tag ()
  (interactive)
  (forward-char 2)
  (if (search-backward "<" nil t)
      (nxml-forward-element)
    (message "No more elements")
    )
  )

(defun nxml-jump-to-openning-tag ()
  (interactive)
  (backward-char 2)
  (if (search-forward ">" nil t)
      (nxml-backward-element)
    (message "No more elements")
    )
  )

(define-key nxml-mode-map (kbd "<C-M-right>") 'nxml-jump-to-closing-tag)
(define-key nxml-mode-map (kbd "<C-M-left>")  'nxml-jump-to-openning-tag)

Press C-M-←. Press C-M-→ to get back.

Post Undeleted by Adobe
added 535 characters in body
Source Link
Adobe
  • 1.9k
  • 14
  • 27

Put the point in the end ofTry the tagfollowing:

<a>
  <b>...</b>
</a>▌
(defun nxml-jump-to-closing-tag ()
  (interactive)
  (forward-char 2)
  (if (search-backward "<" nil t)
      (nxml-forward-element)
    (message "No more elements")
    )
  )

(defun nxml-jump-to-openning-tag ()
  (interactive)
  (backward-char 2)
  (if (search-forward ">" nil t)
      (nxml-backward-element)
    (message "No more elements")
    )
  )

(define-key nxml-mode-map (kbd "<C-M-right>") 'nxml-jump-to-closing-tag)
(define-key nxml-mode-map (kbd "<C-M-left>") 'nxml-jump-to-openning-tag)

and pressPress C-mM-←. Press C-mM-→ to get back.

Put the point in the end of the tag:

<a>
  <b>...</b>
</a>▌

and press C-m-←. Press C-m-→ to get back.

Try the following:

(defun nxml-jump-to-closing-tag ()
  (interactive)
  (forward-char 2)
  (if (search-backward "<" nil t)
      (nxml-forward-element)
    (message "No more elements")
    )
  )

(defun nxml-jump-to-openning-tag ()
  (interactive)
  (backward-char 2)
  (if (search-forward ">" nil t)
      (nxml-backward-element)
    (message "No more elements")
    )
  )

(define-key nxml-mode-map (kbd "<C-M-right>") 'nxml-jump-to-closing-tag)
(define-key nxml-mode-map (kbd "<C-M-left>") 'nxml-jump-to-openning-tag)

Press C-M-←. Press C-M-→ to get back.

Post Deleted by Adobe
Source Link
Adobe
  • 1.9k
  • 14
  • 27

Put the point in the end of the tag:

<a>
  <b>...</b>
</a>▌

and press C-m-←. Press C-m-→ to get back.