.emacs-my
changeset 1568 c4b43eed6b3d
parent 1567 3a880076385d
child 1569 bd25f8d601a8
equal deleted inserted replaced
1567:3a880076385d 1568:c4b43eed6b3d
  3497 
  3497 
  3498 (setq nxml-sexp-element-flag t)
  3498 (setq nxml-sexp-element-flag t)
  3499 (setq nxml-child-indent 2)
  3499 (setq nxml-child-indent 2)
  3500 (setq nxml-attribute-indent 4)
  3500 (setq nxml-attribute-indent 4)
  3501 
  3501 
  3502 (add-to-list 'auto-mode-alist '("\.pom\\'" . nxml-mode))
  3502 (add-to-list 'auto-mode-alist '("\\.pom\\'" . nxml-mode))
  3503 (add-to-list 'auto-mode-alist '("\.xsd\\'" . nxml-mode))
  3503 (add-to-list 'auto-mode-alist '("\\.xsd\\'" . nxml-mode))
  3504 (add-to-list 'auto-mode-alist '("\.rng\\'" . nxml-mode))
  3504 (add-to-list 'auto-mode-alist '("\\.rng\\'" . nxml-mode))
  3505 (add-to-list 'auto-mode-alist '("\.xul\\'" . nxml-mode))
  3505 (add-to-list 'auto-mode-alist '("\\.xul\\'" . nxml-mode))
  3506 (add-to-list 'auto-mode-alist '("\.xslt\\'" . nxml-mode))
  3506 (add-to-list 'auto-mode-alist '("\\.xslt\\'" . nxml-mode))
  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   (if (<= emacs-major-version 25)
  3512   (if (<= emacs-major-version 25)
  3513       (define-key nxml-mode-map [C-return] 'nxml-complete)
  3513       (define-key nxml-mode-map [C-return] 'nxml-complete)
  3514     (define-key nxml-mode-map [C-return] 'completion-at-point))
  3514     (define-key nxml-mode-map [C-return] 'completion-at-point))