forked from colonelpanic/dotfiles
[Emacs] Make C-j work in term-mode
This commit is contained in:
parent
a0f3c33c2b
commit
774d1ea8fb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user