在 Emacs 中运行八度音程
我在 Emacs 中使用 run-octave
来触发 octave
。有些东西表现异常。 每次我按TAB完成时,都会有一个尾部^M
;如果我使用 edit am
编辑 .m
文件,它将启动一个新帧而不是新缓冲区,并且提示正在等待该帧的关闭,因此它会不响应任何输入。如何配置 .emacs
以使 run-octave
正常运行?
任何评论表示赞赏!
I am using run-octave
in Emacs to trigger octave
. Something is acting abnormally.
Every time I hit TAB to complete, there would be a tailing ^M
; If I edit a .m
file using edit a.m
, it would start a new frame instead of a new buffer and the prompt is waiting for the closure of that frame so it would not respond to any input. How could I configure .emacs
so that run-octave
would behave normally?
Any comment is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你似乎有两个问题。我不确定尾随的
^M
,这似乎是由某种 Windows/Unix CR/LF 问题引起的,但也许我可以帮助解决第二个问题。edit
命令使用EDITOR
环境变量来决定要运行的内容。您的似乎已设置为emacsclient
或默认为它。你没有说你是在 Unix 还是 Windows 上,所以我假设是前者:你必须为 Windows 稍微改变一下。为了避免等待,请尝试使用不同的
EDITOR
运行octave
。例如,尝试运行当您输入
edit foo
时,它应该会调出一个 Emacs 缓冲区(如果您还想要一个新框架,也可以使用-c
),但不会等你完成。如果这可以解决问题,您可以更改
~/.bashrc
以包含该行You seem to have two problems. I'm not sure about the trailing
^M
, which seems to be caused by some sort of Windows/Unix CR/LF problem, but maybe I can help with the second problem.The
edit
command uses theEDITOR
environment variable to decide what to run. It seems that yours is either set toemacsclient
or has defaulted to it. You haven't said whether you're on Unix or Windows, so I'm going to assume the former: you'll have to change this a bit for Windows.To avoid the waiting thing, try running
octave
with a differentEDITOR
. For example, try out runningWhen you type
edit foo
, it should bring up an Emacs buffer (if you want a new frame as well, use-c
too) but not wait until you're done.If this fixes things for you, you could change your
~/.bashrc
to include the line