由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] emacs problem
相关主题
how to display color for java or c mode in xemacsHelp! Why can't I add fonts in UNIX?
unix/dos/mac mode in emacshow to automatically send email with attachments in Perl?
One question on Solaris Emacs[转载] 问一个命令
two emacs problemsRe: Emacs高手帮忙定义几个热健
怎么配置emacs才能达到类似Visual Studio的显示效果?Re: 为什么emacs自动给我加^M.
【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)Re: 这是为什么?
question about appending filehow to calculate number of letters in emacs?
[转载] 大家来讨论讨论emacs问题求教----有关C程序格式
相关话题的讨论汇总
话题: emacs话题: mode话题: problem话题: c++话题: alist
进入Unix版参与讨论
1 (共1页)
p**h
发帖数: 99
1
【 以下文字转载自 Programming 讨论区 】
【 原文由 penh 所发表 】
emacs 对 '*.h' 的文件自动用C的颜色模式, 如何让它自动选用C++的颜色模式?
在 '.emacs' 文件中应该如何做?
thanks.
b******d
发帖数: 28
2
(setq auto-mode-alist
(append
'(("\\.h$" . c++-mode)
) auto-mode-alist))
and I don't understand why you choose different color settings for
c mode and c++ mode?

【在 p**h 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 penh 所发表 】
: emacs 对 '*.h' 的文件自动用C的颜色模式, 如何让它自动选用C++的颜色模式?
: 在 '.emacs' 文件中应该如何做?
: thanks.

1 (共1页)
进入Unix版参与讨论
相关主题
emacs问题求教----有关C程序格式怎么配置emacs才能达到类似Visual Studio的显示效果?
how to kill a process in emacs?【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)
two silly questions :-(question about appending file
Emacs mule[转载] 大家来讨论讨论
how to display color for java or c mode in xemacsHelp! Why can't I add fonts in UNIX?
unix/dos/mac mode in emacshow to automatically send email with attachments in Perl?
One question on Solaris Emacs[转载] 问一个命令
two emacs problemsRe: Emacs高手帮忙定义几个热健
相关话题的讨论汇总
话题: emacs话题: mode话题: problem话题: c++话题: alist