码迷,mamicode.com
首页 > 其他好文 > 详细

emacs run multiple eshell buffers (more then one eshell)

时间:2014-05-06 19:40:04      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   code   get   int   

(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)

标签:style   blog   class   code   get   int   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!