made ansi-term usable

This commit is contained in:
petrucci4prez 2018-07-21 18:41:42 -04:00
parent 05d7240cea
commit 58886c8166
1 changed files with 11 additions and 4 deletions

View File

@ -1584,9 +1584,8 @@ only for gmail now
#+END_SRC #+END_SRC
* shell * shell
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defvar nd-term-shell "/bin/bash")
(defadvice ansi-term (before force-bash) (defadvice ansi-term (before force-bash)
(interactive (list nd-term-shell))) (interactive (list "/bin/zsh")))
(ad-activate 'ansi-term) (ad-activate 'ansi-term)
#+END_SRC #+END_SRC
* ediff * ediff
@ -1663,8 +1662,9 @@ Most packages that don't have an evil version are in this one. I don't like surp
:ensure t :ensure t
:after evil :after evil
:init :init
(setq evil-collection-modes-list '(dired flycheck company which-key (setq evil-collection-modes-list
helm minibuffer mu4e ediff)) '(dired flycheck company which-key helm minibuffer mu4e ediff
term))
(setq evil-collection-setup-minibuffer t) (setq evil-collection-setup-minibuffer t)
:config :config
(evil-collection-init)) (evil-collection-init))
@ -1687,6 +1687,13 @@ I like tab completion...regardless of what the helm zealots say. This is actuall
(kbd "<tab>") 'helm-execute-persistent-action (kbd "<tab>") 'helm-execute-persistent-action
(kbd "C-<tab>") 'helm-select-action) (kbd "C-<tab>") 'helm-select-action)
#+END_SRC #+END_SRC
**** term
Since I use vi mode in my terminal emulator, need to preserve the escape key's raw behavior
#+BEGIN_SRC emacs-lisp
(evil-define-key 'insert term-raw-map
(kbd "<escape>") (lambda () (interactive) (term-send-raw-string "\e"))
(kbd "C-<escape>") 'evil-normal-state)
#+END_SRC
** local ** local
These are for mode-specific bindings that can/should be outside of the evil maps above (there are not many, and these may be merged with their evil bretheren in the future) These are for mode-specific bindings that can/should be outside of the evil maps above (there are not many, and these may be merged with their evil bretheren in the future)
*** org-mode *** org-mode