help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numeric keypad buttons


From: Kevin Rodgers
Subject: Re: numeric keypad buttons
Date: Wed, 23 Jul 2003 17:18:46 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Tobias Verbeke wrote:

I'm new to emacs and don't
find a way to use my numeric
keypad as a whole.

For the moment NumLock,
0 ... 9, and . react, but
the /, *, -, + and Enter key don't.

I run (GNU) emacs --no-windows in a gnome terminal (emacs version 21.2.93.1).

Here are the contents of .emacs:

(require 'tex-site)
(load
"/home/tobias/documents/demografie/R/ESS/ess-5.1.24/lisp/ess-site")(s
etq inferior-ess-program "R")(setq ess-ask-for-ess-directory nil)
(setq ess-pre-run-hook
   '((lambda () (setq S-directory default-directory))))
(setq comint-scroll-to-bottom-on-output t)
;; Gestion des accents
(set-terminal-coding-system 'latin-1)
(set-keyboard-coding-system 'latin-1)
(set-language-environment 'latin-1)

I got as far as identifying
/     as    ESC O o
*     as    ESC O j
-     as    ESC O m
+     as    ESC O k
Enter as    <kp-enter>

but attempts to put things correctly
in .emacs fail (don't know syntax
neither if that's the place where to handle with this prob).

What do these commands display?

        C-h v term-file-prefix
        M-x getenv RET term RET

Assuming the values are "term/" and "gnome" respectively, and that Emacs was
configured and installed with the default prefix (/usr/local), there should
be a file called /usr/local/share/emacs/21.3/lisp/term/gnome.el with this in
it:

(define-key function-key-map "\eOo" [kp-divide])
(define-key function-key-map "\eOj" [kp-miltiply])
(define-key function-key-map "\eOm" [kp-add])
(define-key function-key-map "\eOk" [kp-subtract])

Putting that in your ~/.emacs, wrapped in this, would be a start:

(add-hook 'term-setup-hook
          (lambda ()
            ...)))

--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]