Emacsist RSS --- If never, make it ever: C-h C-h

I Wasted Time with a Custom Prompt for R with ESS


这里 查看更多 Emacs 相关推荐文章最新 Emacs 圈的动态. 欢迎关注微信公众账号: Emacsist

Hick 叽喳:

    就看得懂人家玩的是 Emacs,  好像是用 R 语言的什么东西, 嘿嘿

I wanted a custom prompt for R with ESS. I wanted a double struck R. I probably did it wrong. It never worked. Actually it worked most of the time, and that is worse than never working. Kind people helped me. I still got it wrong. I take full responsibility. It was better not to do it. If you want to try, here is where I left it.


Make the ℝ prompt stand out (be sure to tell ESS how to handle this):

options(prompt="ℝ> ")


Tell ESS how to handle my custom prompt:

(setq inferior-ess-primary-prompt "ℝ> ")

Handle the custom ℝ prompt in ess. Don’t use custom here.

(setq inferior-S-prompt "[]a-zA-Z0-9.[]*\\(?:[>+.] \\)*ℝ+> ")
原文出处: Grant Rettke
原文地址: http://www.wisdomandwonder.com/article/9687/i-wasted-time-with-a-custom-prompt-for-r-with-ess
原文时间: 2015-04-04 22:47
本文地址: http://emacsist.com/10076
整理时间: 2015-04-05 16:35

本文由 Hick 整理,转载请保留以上信息;
COPYLEFTThe articles on this site come from Internet, thanks to all the original authors.
      If anything about COPYRIGHT, or LEFT, please contact Emacsist at gmail dot com .