* M-x term in char mode issue
@ 2008-09-16 21:13 Francis Moreau
0 siblings, 0 replies; 2+ messages in thread
From: Francis Moreau @ 2008-09-16 21:13 UTC (permalink / raw)
To: gnu-emacs-help
Hello,
I'm still struggling with the term mode.
According to info on term mode, In char mode, each character
is sent directly to the inferior subshell, except for the Term escape
character, normally `C-c'.
However if I type "C-xC-e" in char mode, emacs runs the command
eval-last-sexp. Could anybody tell me why ?
In line mode, doing in my .emacs:
(defun my-term-mode-hook ()
(define-key term-mode-map "\C-x\C-e" nil))
(add-hook 'term-mode-hook 'my-term-mode-hook)
"C-xC-e" still runs eval-last-sexp.
Confusing...
--
Francis
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <mailman.19382.1221599646.18990.help-gnu-emacs@gnu.org>]
* Re: M-x term in char mode issue
[not found] <mailman.19382.1221599646.18990.help-gnu-emacs@gnu.org>
@ 2008-09-17 23:12 ` Xah
0 siblings, 0 replies; 2+ messages in thread
From: Xah @ 2008-09-17 23:12 UTC (permalink / raw)
To: help-gnu-emacs
On Sep 16, 2:13 pm, "Francis Moreau" <francis.m...@gmail.com> wrote:
> Hello,
>
> I'm still struggling with the term mode.
>
> According to info on term mode, In char mode, each character
> is sent directly to the inferior subshell, except for the Term escape
> character, normally `C-c'.
>
> However if I type "C-xC-e" in char mode, emacs runs the command
> eval-last-sexp. Could anybody tell me why ?
>
> In line mode, doing in my .emacs:
>
> (defun my-term-mode-hook ()
> (define-key term-mode-map "\C-x\C-e" nil))
> (add-hook 'term-mode-hook 'my-term-mode-hook)
>
> "C-xC-e" still runs eval-last-sexp.
not sure why are u defininig a hook within a hook. I note that your
hook my-term-mode-hook is a function, while emacs hook is just a var.
I suppose it should work but does normal hooking work?
personally if i need to ssh etc, i use a real term emulator app such
as Apple's “Terminal” app. Emulating a terminal inside emacs gets
complicated to use because all the normal keybindings gets remapped,
at which point you lose much advantages of operating inside emacs...
of course you might have reasons or preferences ...
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-17 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 21:13 M-x term in char mode issue Francis Moreau
[not found] <mailman.19382.1221599646.18990.help-gnu-emacs@gnu.org>
2008-09-17 23:12 ` Xah
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.