all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* about global-set-key
@ 2012-08-31 23:12 etienne mann
  2012-09-01  0:20 ` Thorsten Jolitz
  0 siblings, 1 reply; 10+ messages in thread
From: etienne mann @ 2012-08-31 23:12 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

Hello,

1) I am struggeling with my .emacs file: I want that when I press "_" emacs
write "_{ }".
So I write this in my .emacs file

(defun souligne () (interactive)
         (insert "_{}") (forward-char -1))
(global-set-key "_" 'souligne)

It does not work. What is strange is that if I put
(defun souligne () (interactive)
         (insert "_{}") (forward-char -1))
(global-set-key "z" 'souligne)
when I press "z", emacs write "_{}" !!!

So in emacs, I try to M-x global-unset-key then _ but it does not work in
emacs. the button _ still works !!!

I also wanted to press ^ and get ^{} and press $ and have $ $ but it not
works !

Notice that for ( ) or {} it works fine

2) my second question is about an historical file and menu.Is it possible
that emacs have a menu with the last 10 files that I opened ?

If you can help me, I would be very happy
thx
Etienne

[-- Attachment #2: Type: text/html, Size: 1044 bytes --]

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

end of thread, other threads:[~2012-09-11  9:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7891.1346455860.855.help-gnu-emacs@gnu.org>
2012-09-01 13:17 ` about global-set-key Stefan Monnier
2012-09-11  8:30   ` etienne
2012-09-11  9:21     ` Peter Dyballa
2012-09-11  8:59   ` etienne
2012-08-31 23:12 etienne mann
2012-09-01  0:20 ` Thorsten Jolitz
2012-09-01  3:54   ` David Young
     [not found]   ` <mailman.7893.1346482862.855.help-gnu-emacs@gnu.org>
2012-09-01 13:19     ` Stefan Monnier
2012-09-11  8:21       ` etienne
2012-09-11  8:15   ` etienne

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.