projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1bca7af
)
emacs - define mapping for multi-term mode
author
Peng Li
<seudut@gmail.com>
Fri, 2 Sep 2016 13:52:31 +0000
(21:52 +0800)
committer
Peng Li
<seudut@gmail.com>
Fri, 2 Sep 2016 13:52:31 +0000
(21:52 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
3f1b023
..
6d3b4c3
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-1241,9
+1241,20
@@
I like [[https://github.com/coldnew/linum-relative][linum-relative]], just like
#+END_SRC
** Multi-term
#+END_SRC
** Multi-term
+define =multi-term= mapping to disable some mapping which is used globally.
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package multi-term
:ensure t)
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package multi-term
:ensure t)
+
+ (defun sd/term-mode-mapping ()
+ (mapcar (lambda (map)
+ (define-key map (kbd "C-o") nil)
+ (define-key map (kbd "C-g") nil))
+ (list term-mode-map
+ term-raw-map)))
+
+ (with-eval-after-load 'multi-term
+ (sd/term-mode-mapping))
#+END_SRC
** ace-link
#+END_SRC
** ace-link