如何在Emacs中开始使用Xiki? [英] How do I start using Xiki in Emacs?

查看:478
本文介绍了如何在Emacs中开始使用Xiki?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图让 xiki 工作。



已安装:

  $ xiki目录
/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki -0.6.3 /

移动所有文件的shell脚本成功执行AFAIK,但我关闭那个shell,所以不能显示它的输出。



看起来服务器正在运行:

  $ xiki status 
xiki_process.rb:running [pid 93257]



我安装了emacs(我在安装xiki之前安装了这个),并设置了init文件:

  $ cat〜 /.el4r/init.rb 
#开始的el4r块:
#RCtool自动生成这个块。不要修改这个块!
#这是el4r初始化文件。
#结束el4r块。
#用户设置区域在此行以下。
#用户设置区域在此行以下。

$ LOAD_PATH.unshift/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib
require'xiki'
Xiki.init

KeyBindings.keys#使用默认键绑定
Themes.useDefault#使用xiki主题

但是当我运行emacs时,它会分割屏幕并将错误放在底部:

 警告(初始化):加载`/Users/joshcheek/.emacs'时发生错误:

错误:el4r-instance已经死了。

为了确保正常运行,您应该调查并删除
导致的初始化文件中的错误。启动Emacs与
`--debug-init'选项来查看完整的错误回溯。

当我按Option-l(也尝试Escape l,如果选项不是元)没有什么可以发生(当我在欢迎窗口窗格中,它说它是只读的,当我在底部的一个,说xiki已经死了,它根本没有做任何事情)。回到控制台, xiki status 仍然表示它正在运行同一个pid。



有两个日志,每个都有同样的问题:

  $ tail /tmp/el4r-joshcheek.9* 
==> /tmp/el4r-joshcheek.92157.log< ==
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in`call'$来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in的
来自/Users/joshcheek/.rvm/rubies/ruby的`readline'
-1.9.3-p194 / bin / el4r-instance:797:在`el4r_recv'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:在来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in的`el4r_get'
中,来自/ Users / joshcheek的el4r_wait_expr'
/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in`el4r_with_call'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin / el4r-instance:765:在`el4r_wait_expr'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in`el4r_wait_expr_loop'
来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in`< main>'
2012-09-12 23:50:14 -0500 :退出。

==> /tmp/el4r-joshcheek.93192.log< ==
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in`call'$来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in的
来自/Users/joshcheek/.rvm/rubies/ruby的`readline'
-1.9.3-p194 / bin / el4r-instance:797:在`el4r_recv'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:在来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in的`el4r_get'
中,来自/ Users / joshcheek的el4r_wait_expr'
/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in`el4r_with_call'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin / el4r-instance:765:在`el4r_wait_expr'
from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in`el4r_wait_expr_loop'
来自/Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in`< main>'
2012-09-12 23:53:41 -0500 :退出。

我不知道我应该如何加载它,我假设我只需启动emacs,我可以开始双击单词到目前为止它不会这样做,但我不认为这是正确的说话emacs。 / p>

当我查看emacs gui中的信息时,它说它是版本24.2(从这里),当我在控制台上执行 emacs --version 时,它说它是22.1.1版,我可以解决这个问题,并尝试将它们都转到版本24 ,但我甚至不知道这是什么问题(虽然我可能更喜欢从控制台使用这些)。



我尝试找到文档如何去做,但似乎没有那么多。尝试加入Google群组,我会问过,但我的会员资格正在等待。



我只是想能够从视频中尝试出来。 p>

解决方案

看起来你已经安装了所有东西。如果您使用rvm,则在安装所有内容时是否更改了ruby版本?我有与emacs相同的问题,说el4r实例死了,当我启动emacs与rvm使用不同的ruby比我安装el4r与。


Trying to get xiki to work.

It is installed:

$ xiki directory
/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/

The shell script that moves all the files around executed successfully AFAIK, but I closed that shell, so can't show its output. Nothing jumped out at me about being wrong, though.

It looks like the server is running:

$ xiki status
xiki_process.rb: running [pid 93257]

I have emacs installed (I installed this before installing xiki), and set up the init file:

$ cat ~/.el4r/init.rb 
# Beginning of the el4r block:
# RCtool generated this block automatically. DO NOT MODIFY this block!
# This is the el4r initialization file.
# End of the el4r block.
# User-setting area is below this line.
# User-setting area is below this line.

$LOAD_PATH.unshift "/Users/joshcheek/.rvm/gems/ruby-1.9.3-p194/gems/xiki-0.6.3/lib"
require 'xiki'
Xiki.init

KeyBindings.keys   # Use default key bindings
Themes.use "Default"  # Use xiki theme

But when I run emacs, it splits the screen and places this error in the bottom:

Warning (initialization): An error occurred while loading `/Users/joshcheek/.emacs':

error: el4r-instance is dead.

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

when I press Option-l (also tried Escape l, in case option wasn't meta), nothing appears to happen (When I do it in the welcome window pane, it says it is read only, when I do it in the bottom one that says xiki is dead, it just doesn't do anything). Going back to the console, xiki status still says it is running with the same pid.

There are two logs, each with the same problem:

$ tail /tmp/el4r-joshcheek.9*
==> /tmp/el4r-joshcheek.92157.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:50:14 -0500:Exiting.

==> /tmp/el4r-joshcheek.93192.log <==
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `readline'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:797:in `el4r_recv'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:790:in `el4r_get'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:768:in `block in el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:836:in `el4r_with_call'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:765:in `el4r_wait_expr'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:760:in `el4r_wait_expr_loop'
  from /Users/joshcheek/.rvm/rubies/ruby-1.9.3-p194/bin/el4r-instance:1102:in `<main>'
2012-09-12 23:53:41 -0500:Exiting.

I don't know how I'm supposed to be able to load it up, I assumed I just start emacs, and I can begin double clicking things like the word table so far it doesn't do this, but I don't think it's correctly talking to emacs.

When I look at info in the emacs gui, it says it is version 24.2 (installed from here), when I do emacs --version on the console, it says it is version 22.1.1 I can troubleshoot this and try to get them both to version 24, but I don't even know if this is what the problem is (though I'd probably prefer to use these from the console).

I tried finding docs about how to get going with it, but there didn't seem to be much in that way. Tried joining the Google group, I would have asked there, but my membership is pending.

I just want to be able to try out the stuff from the video.

解决方案

It looks like you have everything installed. If you are using rvm, did you change the ruby version when you installed everything? I had the same problem with emacs saying el4r instance is dead when I started emacs with rvm using a different ruby than what I installed el4r with.

这篇关于如何在Emacs中开始使用Xiki?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆