eshell.el 328 B

12345678910111213141516
  1. (defun eshell-toggle()
  2. (interactive)
  3. (if (cl-search "*eshell" (buffer-name))
  4. (switch-to-prev-buffer)
  5. (eshell)))
  6. (add-hook 'eshell-mode-hook (lambda() (interactive)
  7. (linum-mode 0)))
  8. (setq eshell-count 1)
  9. (defun eshell-new()
  10. (interactive)
  11. (eshell eshell-count)
  12. (setq eshell-count (+ 1 eshell-count)))