.emacs-my
changeset 1578 1fabb8953172
parent 1577 ffabe41afc28
child 1579 92b878231632
equal deleted inserted replaced
1577:ffabe41afc28 1578:1fabb8953172
  3521 (add-to-list 'auto-mode-alist '("\\.atom\\'" . nxml-mode))
  3521 (add-to-list 'auto-mode-alist '("\\.atom\\'" . nxml-mode))
  3522 
  3522 
  3523 (my--eval-after-load nxml-mode
  3523 (my--eval-after-load nxml-mode
  3524   (if (<= emacs-major-version 25)
  3524   (if (<= emacs-major-version 25)
  3525       (define-key nxml-mode-map [C-return] 'nxml-complete)
  3525       (define-key nxml-mode-map [C-return] 'nxml-complete)
  3526     (define-key nxml-mode-map [C-return] 'completion-at-point)))
  3526     (define-key nxml-mode-map [C-return] 'completion-at-point))
       
  3527   (define-key nxml-mode-map [S-tab] 'hs-toggle-hiding))
  3527 
  3528 
  3528 (defun my-nxml-pp ()
  3529 (defun my-nxml-pp ()
  3529   "Pretty-print XML."
  3530   "Pretty-print XML."
  3530   (interactive)
  3531   (interactive)
  3531   (goto-char (point-min))
  3532   (goto-char (point-min))