b*d
2 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 Bluewind 所发表 】
1. 在emacs下编译c程序时,我的emacs总是只从~/下
找makefile,如何将其设成自动从当前buffer中文件所在的路径下找? 如:
输入M-x compile, emacs提示
compile command: make -k
回车后出现compilation buffer,里面提示
cd /home/myaccount/mydirectory/
make -k
make: *** No targets specified and no makefile found. Stop.
这时makefile就在mydirectory下,可是emacs找不到,
把makefile易到我的~/下就找到了
该怎么解决?多谢
2. perl中的正则表达式
现有一标量$a,我要替换其中的某个词,然后保存到一个新的变量$b,
但我还需要原来的$a,我可以这样做
# for example, $a = "hello, world";
$b = $a;
$b =~ s/hello/hell/;
【 原文由 Bluewind 所发表 】
1. 在emacs下编译c程序时,我的emacs总是只从~/下
找makefile,如何将其设成自动从当前buffer中文件所在的路径下找? 如:
输入M-x compile, emacs提示
compile command: make -k
回车后出现compilation buffer,里面提示
cd /home/myaccount/mydirectory/
make -k
make: *** No targets specified and no makefile found. Stop.
这时makefile就在mydirectory下,可是emacs找不到,
把makefile易到我的~/下就找到了
该怎么解决?多谢
2. perl中的正则表达式
现有一标量$a,我要替换其中的某个词,然后保存到一个新的变量$b,
但我还需要原来的$a,我可以这样做
# for example, $a = "hello, world";
$b = $a;
$b =~ s/hello/hell/;
k*n
4 楼
去杀吧,别忘了带摄像机
相关阅读
A problemhow to config keyboard in Solaris?SGI下如何看.avi文件FreeBSD下,是否支持ultra SCSI 160Anyboay has a binary cxterm file on HPUX?再问一次。Help!!! Building Cxterm on HPUXProxy 设置求助xemacs 里如何设置让它显示行号?what is the short cut for repeat search in emacs?shell programming问题:如何同时run多个作业Who has WinLinux 2000 for Win98??a panic for helpIs there a C++ compiler coming w/ Solaris x86?dynamic assigned port number for UDP socket, need help!使用 AWK 中的问题初级问题:怎么打开.rpm文件阿?How can run fortran language in Window NT?how to change window size and font size?急问: *.tgz 文件怎么解?