Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: configure different keybindings for different types of shell #40

Open
justmytwospence opened this issue Sep 9, 2015 · 3 comments

Comments

@justmytwospence
Copy link

Incredibly useful package here, thanks. It would be even more useful if I could easily configure one keybinding for an eshell and another for a terminal emulator, for example. Is there an easy way to configure that with the current state of the package?

@syohex
Copy link
Collaborator

syohex commented Sep 10, 2015

Is there an easy way to configure that with the current state of the package?

No. There is no way. We can use two shells with following configuration, but we cannot use them simultaneously.

(defun shell-pop-eshell ()
  (interactive)
  (let ((shell-pop-shell-type '("eshell" "*eshell*" (lambda () (eshell))))
        (shell-pop-term-shell "eshell"))
    (shell-pop--set-shell-type 'shell-pop-shell-type shell-pop-shell-type)
    (call-interactively 'shell-pop)))

(defun shell-pop-shell ()
  (interactive)
  (let ((shell-file-name "/bin/bash")
        (shell-pop-shell-type '("shell" "*shell*" (lambda () (shell))))
        (shell-pop-term-shell "shell"))
    (shell-pop--set-shell-type 'shell-pop-shell-type shell-pop-shell-type)
    (call-interactively 'shell-pop)))

(global-set-key (kbd "M-e") 'shell-pop-eshell)
(global-set-key (kbd "M-a") 'shell-pop-shell)

@Fuco1
Copy link
Collaborator

Fuco1 commented Jun 11, 2016

@justmytwospence you can use eyebrowse package and use a convention to always put your ansi-term on first workspace. Then just write a very simple "toggle current<->1" function. I've been using this with great success.

I still use shell-pop for the extreme convenience of directory tracking and just quickily getting in/out of my way. I use shell-pop with eshell so whenever I don't need full terminal.

@azzamsa
Copy link

azzamsa commented May 7, 2018

No. There is no way. We can use two shells with following configuration, but we cannot use them simultaneously.

@syohex thanks. wors great for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants