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

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

Re: numeric keypad buttons


From: Tobias Verbeke
Subject: Re: numeric keypad buttons
Date: Tue, 29 Jul 2003 15:27:34 +0200

[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      <kp-divide> is undefined
*        ESC O j      <kp-multiply> is undefined
-        ESC O m      <kp-add> is undefined
+        ESC O k      <kp-subtract> is undefined
Enter    ESC O M      <kp-enter> 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])))

       



 




reply via email to

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