Emacs下term的问题

Vim、Emacs配置和使用
回复
头像
yoursaf
帖子: 234
注册时间: 2010-04-01 0:58

Emacs下term的问题

#1

帖子 yoursaf » 2011-08-26 1:12

我在.emacs中把F8设置为运行term命令,可是每次运行以后,需要敲回国来确认/bin/bash是默认的term并运行它,请问如何设置键绑定来解决这个问题,或者设置emacs来解决。
另:请勿提交其他解决办法,如使用shell命令等。个人爱好,喜欢在emacs下用bash。

代码: 全选

if ( 信春哥=true )
  {
    得永生;
    不挂科;
    赚大钱;
    不怕磕;
  }
 else
   {
     去死吧;
   }
lhui
帖子: 78
注册时间: 2009-09-04 16:42

Re: Emacs下term的问题

#2

帖子 lhui » 2011-08-27 9:59

代码: 全选

(global-set-key [f8] (lambda () (interactive) (term "/bin/bash")))
头像
yoursaf
帖子: 234
注册时间: 2010-04-01 0:58

Re: Emacs下term的问题

#3

帖子 yoursaf » 2011-08-27 21:44

谢谢,问题解决了。 :em11

代码: 全选

if ( 信春哥=true )
  {
    得永生;
    不挂科;
    赚大钱;
    不怕磕;
  }
 else
   {
     去死吧;
   }
回复