Created
September 22, 2016 19:48
-
-
Save abuiles/c6c4554283a346094586feef84991c3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Open Shells | |
| (defun my-shell (arg) | |
| (interactive "p") | |
| (let ((arg (or arg 1))) | |
| (shell (format "*sh%d*" arg)))) | |
| (global-unset-key (kbd "C-z")) | |
| (global-set-key (kbd "C-z 1") '(lambda () (interactive) (my-shell 1))) | |
| (global-set-key (kbd "C-z 2") '(lambda () (interactive) (my-shell 2))) | |
| (global-set-key (kbd "C-z 3") '(lambda () (interactive) (my-shell 3))) | |
| (global-set-key (kbd "C-z 4") '(lambda () (interactive) (my-shell 4))) | |
| (global-set-key (kbd "C-z 5") '(lambda () (interactive) (my-shell 5))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment