all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* keymap problem
@ 2005-03-20  5:43 no spam
  2005-03-20 16:14 ` Joe Corneli
  0 siblings, 1 reply; 10+ messages in thread
From: no spam @ 2005-03-20  5:43 UTC (permalink / raw)


I've been given an account on a university system running Linux, and the 
     Emacs version is 21.2.1.   The problem is, I cannot figure out how 
to make my Backspace key work properly.  Or rather, I can, sort of, but 
only by typing global-set-key each time.

Before you say "so put that in your .emacs file, and off you go" -- I've 
been trying to do that, but can't make it work.

Details:

I'm running Fedora Core 3 and using ssh to get to the host.

if I do M-x global-set-key while in Emacs, when I hit Backspace, it 
displays it as C-d (First clue something isn't right).  How do I change 
this binding, so that my Backspace is really mapped to a backspace, and 
not C-d?

If I give it the function 'delete-backward-char', then Backspace AND C-d 
do the same thing, which is a slight improvement, but not really what I 
want.


and putting

(global-set-key [backspace] 'delete-backward-char)

or

(global-set-key [DEL] 'delete-backward-char)

in the .emacs file doesn't work:  Backspace still deletes forward.


Moreover, C-h on this system is currently the way to get backspace 
functionality, not "help" as it should be.

So how do I fix all this?  I've been poring over the Gnu emacs website 
and I know it has something to do with the keymaps, but I haven't quite 
managed to figure it out.  Thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Keymap problem
@ 2007-07-15 11:35 lu
  2007-07-16 10:58 ` lu
  0 siblings, 1 reply; 10+ messages in thread
From: lu @ 2007-07-15 11:35 UTC (permalink / raw)
  To: help-gnu-emacs

I use the following code to define a menu named "Pmd" which
have only one menu item named "pmd current buffer".
The menuitem binded to 'pmd-current-buffer.
but the shotcut (C-c p b) does not work,What is the problem?
Thanks.

(defun pmd-minor-mode (&optional arg)
""
(setq pmd-list-entry-keymap (make-keymap))
(use-local-map pmd-list-entry-keymap)
(defvar pmd:map nil
"The pmd keymap.")
(setq pmd:map (make-sparse-keymap))
(define-key pmd:map "\C-cpb" 'pmd-current-buffer)
(easy-menu-define pmd:menu
(list pmd:map pmd-list-entry-keymap)
"pmd menu"
'("Pmd"
[ "pmd current buffer" pmd-current-buffer t ]
)
)

(easy-menu-add pmd:menu pmd:map)
)

(add-hook 'jde-mode-hook (function pmd-minor-mode))

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-16 10:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20  5:43 keymap problem no spam
2005-03-20 16:14 ` Joe Corneli
2005-03-20 16:16   ` Joe Corneli
     [not found]   ` <mailman.4482.1111337221.32256.help-gnu-emacs@gnu.org>
2005-03-20 17:47     ` no spam
2005-03-20 18:11       ` Joe Corneli
     [not found]       ` <mailman.4492.1111343289.32256.help-gnu-emacs@gnu.org>
2005-03-20 19:40         ` no spam
2005-03-20 19:54           ` Joe Corneli
     [not found]           ` <mailman.4498.1111349806.32256.help-gnu-emacs@gnu.org>
2005-03-20 20:32             ` no spam
  -- strict thread matches above, loose matches on Subject: below --
2007-07-15 11:35 Keymap problem lu
2007-07-16 10:58 ` lu

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.