GNU Emacsã®ãã¼ã¸ã§ã³22以ä¸(å¤é¨ç)ã¨ãã¼ã¸ã§ã³23以ä¸(ä»å±ç)ã®ä¸¡æ¹ã§åä½ããnXML modeã®è²è¨å®ã®è¨è¿°ã«ã¤ãã¦
ãnXML modeの設定とアウトライン操作メモãã§ã¯ãã¼ã¸ã§ã³22ç³»ã®Emacsã§è¿½å ããã±ã¼ã¸ã¨ãã¦nXML modeãç¨ãã¦ããããã®å¾Emacsã®ãã¼ã¸ã§ã³ã23ç³»ã«ãªã£ãéã«ã¯æ¨æºã§åã¢ã¼ããæä¾ãããããã«ãªã£ã¦ããã®ã ãããã¤ã®é ããããªã³ã¯å
ã®è¨äºã«ãããã«ã¹ã¿ã é
è²è¨å®ãåä½ããªããªã£ã¦ãã(æ¢å®ã®è²è¨å®ã«ãªã)ã
調ã¹ã¦ã¿ãã¨ãããEmacsã®ãFaceã(è¦æ ãå®ç¾©)ã®æå®ããååã追å ããã±ã¼ã¸ã®ã¨ãã®ãã®ã¨ãã¼ã¸ã§ã³23ç³»ã«å«ã¾ãããã®ã¨ã§ç°ãªããã¨ãåãã£ãã
ããã§ãåãè¨å®ã®è¨è¿°ã§ãã¼ã¸ã§ã³22ç³»(追å ããã±ã¼ã¸ã§nXML modeã使ç¨)ã¨ãã¼ã¸ã§ã³23ç³»(æ¨æºã§å«ã¾ãããã®)ã®ã©ã¡ãã®Emacsã§ãè²ãæ£ããå¤ããããã«ããã
ãnXML modeの設定とアウトライン操作メモãã«è¨è¿°ããè¨å®ã®å
ãè²è¨å®ã«é¢ããé¨åã®ã¿ãä¸ã®ãã®ã«ç½®ãæããã
ãã¡ã¤ã«å: ~/.emacs.el
;; è²è¨å® (if (>= emacs-major-version 23) ; ãã¼ã¸ã§ã³23以ä¸/ä»å±ç (custom-set-faces '(nxml-comment-delimiter ((t (:foreground "#66e6e6")))) ; <!-- --> '(nxml-comment-content ((t (:foreground "#f69933")))) ; ã³ã¡ã³ã '(nxml-delimited-data ((t (:foreground "LightSalmon")))) ; å±æ§å¤ãDTDå¼æ°å¤ãªã© '(nxml-delimiter ((t (:foreground "LightSalmon")))) ; <> <? ?> "" '(nxml-element-local-name ((t (:foreground "PaleGreen")))) ; è¦ç´ å '(nxml-element-colon ((t (:foreground "LightSteelBlue")))) ; :(xsl:paramãªã©) '(nxml-name ((t (:foreground "LightGoldenrod")))) ; å±æ§åãªã© '(nxml-ref ((t (:foreground "LightSkyBlue")))) ; <ãªã© '(nxml-tag-slash ((t (:foreground "LightSkyBlue")))) ; /(çµäºã¿ã°) ) ; ãã¼ã¸ã§ã³23æªæº/å¤é¨ç (custom-set-faces '(nxml-comment-delimiter-face ((t (:foreground "#66e6e6")))) ; <!-- --> '(nxml-comment-content-face ((t (:foreground "#f69933")))) ; ã³ã¡ã³ã '(nxml-delimited-data-face ((t (:foreground "LightSalmon")))) ; å±æ§å¤ãDTDå¼æ°å¤ãªã© '(nxml-delimiter-face ((t (:foreground "LightSalmon")))) ; <> <? ?> "" '(nxml-element-local-name-face ((t (:foreground "PaleGreen")))) ; è¦ç´ å '(nxml-element-colon-face ((t (:foreground "LightSteelBlue")))) ; :(xsl:paramãªã©) '(nxml-name-face ((t (:foreground "LightGoldenrod")))) ; å±æ§åãªã© '(nxml-ref-face ((t (:foreground "LightSkyBlue")))) ; <ãªã© '(nxml-tag-slash-face ((t (:foreground "LightSkyBlue")))) ; /(çµäºã¿ã°) ) )
ç¾ç¶ã§ã¯åãè²è¨å®ã®è¨è¿°ã2åç¹°ãè¿ãã¦ãããããªå½¢ã«ãªã£ã¦ãã¾ã£ã¦ããããã£ã¨ä¸æãªæ¸ãæ¹ããããããããªãã
ãã¡ãããä»å¾ãã¼ã¸ã§ã³23æªæºã¯ä½¿ããªãã¨ããã®ã§ããã°ããã¼ã¸ã§ã³ã§å¦çãåå²ãããã以åã®è¨è¿°ã«å¯¾ãã¦ãnxml-[åå]-faceãã®ã-faceãã空æååã«ä¸æ¬ç½®æãã¦ãããã
é¢é£è¨äº:
使ç¨ãããã¼ã¸ã§ã³: