首页 > 其他 > 详细

emacs run multiple eshell buffers (more then one eshell)

时间:2014-05-06 19:40:44      阅读:343      评论:0      收藏:0      [点我收藏+]
(defun buffer-exists (bufname)   
  (not (eq nil (get-buffer bufname))))

(defun make-shell (name)
  "Create a shell buffer named NAME."
  (interactive "sName: ")
  (if (buffer-exists "*eshell*")
      (setq eshell-buffer-name name)
    (message "eshell doesnot exists, use the default name: *eshell*"))
  (eshell))


Because the eshell buffer is determined by the value of eshell-buffer-name.  You need not to rename the buffer after creating it.

emacs run multiple eshell buffers (more then one eshell),布布扣,bubuko.com

emacs run multiple eshell buffers (more then one eshell)

原文:http://blog.csdn.net/loveaborn/article/details/25101499

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!