[Emacs] Make C-j work in term-mode

This commit is contained in:
Ivan Malison 2016-11-13 09:50:33 +00:00
parent a0f3c33c2b
commit 774d1ea8fb
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -3638,10 +3638,18 @@ emr (emacs refactor) provides support for refactoring in many programming langua
** term ** term
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package term (use-package term
:preface
(progn
(defun imalison:avy-term (arg)
(interactive "P")
(term-line-mode)
(imalison:avy arg)))
:bind (:map term-raw-escape-map :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 :map term-raw-map
("M-x" . helm-M-x)) ("M-x" . helm-M-x)
("C-j" . imalison:avy-term))
:config :config
(progn (progn
(define-key term-raw-map (kbd "C-h") help-map) (define-key term-raw-map (kbd "C-h") help-map)