From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tobias Verbeke Newsgroups: gmane.emacs.help Subject: Re: numeric keypad buttons Date: Tue, 29 Jul 2003 15:27:34 +0200 Organization: -= Belgacom Usenet Service =- Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030729152734.6a663ec3.tobias_verbeke@skynet.be> References: <20030724224909.0f2725e5.tobias_verbeke@skynet.be> <3F21BE5D.5070005@yahoo.com> <20030726225655.611cd33c.tobias_verbeke@skynet.be> <3F255D5D.1090804@yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059485342 2970 80.91.224.249 (29 Jul 2003 13:29:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2003 13:29:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 29 15:29:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19hUUV-0000WS-00 for ; Tue, 29 Jul 2003 15:26:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hUTg-0001af-Lu for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2003 09:25:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snh1.gtei.net!news.gtei.net!ngpeer.news.aol.com!newsfeed1!bredband!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!cleanfeed.casema.net!skynet.be!skynet.be!louie!tlk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Sylpheed version 0.9.2 (GTK+ 1.2.10; i686-pc-linux-gnu) Original-Lines: 86 Original-NNTP-Posting-Host: 81.240.113.225 Original-X-Trace: 1059484904 reader1.news.skynet.be 7137 81.240.113.225:32844 Original-X-Complaints-To: usenet-abuse@skynet.be Original-Xref: shelby.stanford.edu gnu.emacs.help:115521 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11439 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11439 [numeric keypad buttons don't behave as expected when running emacs --no-windows in a gnome terminal] > post exactly what you added to your ~/.emacs. Thanks for your reply. Here's my full .emacs. I added your solution at the very end of it. I'll summarize what I know about how the keys behave now (after installing GNU emacs 21.3.2 from source): I type: C-h l gives: C-h c gives: / ESC O o is undefined * ESC O j is undefined - ESC O m is undefined + ESC O k is undefined Enter ESC O M is undefined Thanks again for your help, Regards, Tobias ;; get rid of menu bar (menu-bar-mode nil) ;; font-lock everywhere (global-font-lock-mode 1) ;; latin-1 but with euro-sign (set-terminal-coding-system 'latin-9) (set-keyboard-coding-system 'latin-9) (set-language-environment 'latin-9) ;; AUCTeX (require 'tex-site) ;; edit Sweave files with LaTeX syntax (add-to-list 'auto-mode-alist '("\\.Stex\\'" . latex-mode)) ;; ESS (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) ;; Sweave ;;(defun Rnw-mode () ;; (require 'ess-noweb) ;; (noweb-mode) ;; (if (fboundp 'R-mode) ;; (setq noweb-default-code-mode 'R-mode))) ;;(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) ;;(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode)) ;;(setq reftex-file-extensions ;; '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib"))) ;;(setq TeX-file-extensions ;; '(("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo")) ;; R. Gentleman vi behaviour ;;(setq blink-matching-paren t) ;;(global-set-key "%" 'match-paren) ;;(defun match-paren (arg) ;; "Go to the matching parenthesis if on parenthesis otherwise insert %.";; (interactive "p") ;; (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1)) ;; ((looking-at "\\s\)") (forward-char 1) (backward-list 1)) ;; (t (self-insert-command (or arg 1))))) ;; solution num. keyp. prob in gnome-terminal (add-hook 'term-setup-hook (lambda () (define-key function-key-map "\eOo" [kp-divide]) (define-key function-key-map "\eOj" [kp-multiply]) (define-key function-key-map "\eOm" [kp-add]) (define-key function-key-map "\eOk" [kp-subtract])))