From 58886c8166ce45a5f9a9e49b3a109b78084cdb89 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Sat, 21 Jul 2018 18:41:42 -0400 Subject: [PATCH] made ansi-term usable --- conf.org | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/conf.org b/conf.org index cfa49a2..c1e4a6c 100644 --- a/conf.org +++ b/conf.org @@ -1584,9 +1584,8 @@ only for gmail now #+END_SRC * shell #+begin_src emacs-lisp -(defvar nd-term-shell "/bin/bash") (defadvice ansi-term (before force-bash) - (interactive (list nd-term-shell))) + (interactive (list "/bin/zsh"))) (ad-activate 'ansi-term) #+END_SRC * 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 :after evil :init - (setq evil-collection-modes-list '(dired flycheck company which-key - helm minibuffer mu4e ediff)) + (setq evil-collection-modes-list + '(dired flycheck company which-key helm minibuffer mu4e ediff + term)) (setq evil-collection-setup-minibuffer t) :config (evil-collection-init)) @@ -1687,6 +1687,13 @@ I like tab completion...regardless of what the helm zealots say. This is actuall (kbd "") 'helm-execute-persistent-action (kbd "C-") 'helm-select-action) #+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 "") (lambda () (interactive) (term-send-raw-string "\e")) + (kbd "C-") 'evil-normal-state) +#+END_SRC ** 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) *** org-mode