Getting Emacs ansi-term and Zsh to play nicely

后端 未结 4 603
[愿得一人]
[愿得一人] 2021-02-01 21:42

I\'ve been trying to use Zsh within my emacs session, without emacs remapping all the Zsh keys. I found ansi-term works pretty well for this but, I\'m still having some problems

4条回答
  •  Happy的楠姐
    2021-02-01 22:32

    I was looking for this as well for quite a while now. For me adding following to the

    ;; ansi-term
    
    (global-set-key "\C-x\C-a" '(lambda ()(interactive)(ansi-term "/bin/zsh")))
    (global-set-key "\C-x\ a" '(lambda ()(interactive)(ansi-term "/bin/zsh")))
    

    works. I picked this from http://svn.assembla.com/svn/id774/scripts/dot_files/dot_emacs.d/elisp/global-set-key.el .

    I am sure there are other goodies in that script. As an added bonus screen seems to play nicely with emacs for me.

提交回复
热议问题