.emacs-my
changeset 1567 3a880076385d
parent 1566 0e7f4d5153d1
child 1568 c4b43eed6b3d
equal deleted inserted replaced
1566:0e7f4d5153d1 1567:3a880076385d
  3507 (add-to-list 'auto-mode-alist '("\.svg\\'" . nxml-mode))
  3507 (add-to-list 'auto-mode-alist '("\.svg\\'" . nxml-mode))
  3508 (add-to-list 'auto-mode-alist '("\.rss\\'" . nxml-mode))
  3508 (add-to-list 'auto-mode-alist '("\.rss\\'" . nxml-mode))
  3509 (add-to-list 'auto-mode-alist '("\.atom\\'" . nxml-mode))
  3509 (add-to-list 'auto-mode-alist '("\.atom\\'" . nxml-mode))
  3510 
  3510 
  3511 (my--eval-after-load nxml-mode
  3511 (my--eval-after-load nxml-mode
  3512   (define-key nxml-mode-map [C-return] 'nxml-complete))
  3512   (if (<= emacs-major-version 25)
       
  3513       (define-key nxml-mode-map [C-return] 'nxml-complete)
       
  3514     (define-key nxml-mode-map [C-return] 'completion-at-point))
  3513 
  3515 
  3514 (defun my-nxml-pp ()
  3516 (defun my-nxml-pp ()
  3515   "Pretty-print XML."
  3517   "Pretty-print XML."
  3516   (interactive)
  3518   (interactive)
  3517   (goto-char (point-min))
  3519   (goto-char (point-min))