From 774d1ea8fbcedb589e0f7ba36128f9cb1d9f06ed Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 13 Nov 2016 09:50:33 +0000 Subject: [PATCH] [Emacs] Make C-j work in term-mode --- dotfiles/emacs.d/README.org | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index c3d44ce6..b745a048 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3638,10 +3638,18 @@ emr (emacs refactor) provides support for refactoring in many programming langua ** term #+BEGIN_SRC emacs-lisp (use-package term + :preface + (progn + (defun imalison:avy-term (arg) + (interactive "P") + (term-line-mode) + (imalison:avy arg))) :bind (:map term-raw-escape-map - ("M-x" . helm-M-x) + ("M-x" . helm-M-x) + ("C-j" . imalison:avy-term) :map term-raw-map - ("M-x" . helm-M-x)) + ("M-x" . helm-M-x) + ("C-j" . imalison:avy-term)) :config (progn (define-key term-raw-map (kbd "C-h") help-map)