[Insight-users] how to config emacs?
Kent Williams
kent at psychiatry.uiowa.edu
Mon Oct 30 11:58:36 EST 2006
Emacs sets the display mode/key functions for a file based on the file
extensions. If you're editing a TXX file, and it doesn't come up with
syntax highlighting, the command 'c++-mode' will tell Emacs you wish to
treat this buffer as C++ code.
If you wish to always have TXX files show up as C++, add the following
to your .emacs (or .xemacs/init.el):
;;This adds additional extensions which indicate files normally
;;handled by cc-mode.
(setq auto-mode-alist
(append '(("\\.C$" . c++-mode)
("\\.cc$" . c++-mode)
("\\.cxx$" . c++-mode)
("\\.txx$" . c++-mode)
("\\.hh$" . c++-mode)
("\\.c$" . c-mode)
("\\.h$" . c++-mode)
("\\.inc$" . c++-mode))
auto-mode-alist))
衣文文 wrote:
> My operating system is Windows XP
> I want to use emacs to edit itk code, but keywords of .txx file can
> not be highlighted in different colors like .h and .cxx files.
> How should I config emacs?
>
>
>
>
>
>
>
> Nike 专 卖 6 折 清 仓 , 疯抢 啦 !
> 低 价 上 市 ! 阿 迪 \Kappa\ 李 宁 新 款 运 动 装 的 全 长 1-4 折 ( 图
> )
> <http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/vertical/lady/pro.php>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list