[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
From: |
Pascal Bourguignon |
Subject: |
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul |
Date: |
Thu, 07 Jul 2005 15:34:55 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru> writes:
> On 9162 day of my life Pascal Bourguignon wrote:
>>>> [ Now, if anybody could explain me why it doesn't work automatically
>>>> when I put this in my ~/.emacs:
>>>>
>>>> (case window-system
>>>> ((nil)
>>>> (message "houra")
>>>> (normal-erase-is-backspace-mode)) ; never works :-(
>>>
>>> Does at least (message "houra") work?
>>> Try also to use (normal-erase-is-backspace-mode 1)
>>
>> Yes, houra is logged. And with:
>> (setq inhibit-default-init t) ; and
>> (normal-erase-is-backspace-mode 1) ; it still leaves
>> C-h bound to delete-backward-char, and
>> DEL translated to C-d bound to delete-char
>
> What about
>
> (add-hook 'emacs-startup-hook
> (lambda ()
> (case window-system
> ...)))
(add-hook 'emacs-startup-hook
(lambda ()
(message "setting up the keyboard")
(case window-system
((nil)
(message "houra")
(normal-erase-is-backspace-mode 1))
((x)
(define-key global-map [(delete)] "\C-d")
(make-face-bold 'bold-italic))
((mac)
(setq mac-command-key-is-meta nil
mac-reverse-ctrl-meta nil)
(set-keyboard-coding-system 'mac-roman)))))
I get:
setting up the keyboard
houra
in the *Message*, but C-h is still delete-backward-char and DEL delete-char.
--
__Pascal Bourguignon__ http://www.informatimago.com/
This is a signature virus. Add me to your signature and help me to live
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Pascal Bourguignon, 2005/07/06
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Ivan Boldyrev, 2005/07/07
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul,
Pascal Bourguignon <=
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Kevin Rodgers, 2005/07/07
- Message not available
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Pascal Bourguignon, 2005/07/07
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Ivan Boldyrev, 2005/07/08
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Pascal Bourguignon, 2005/07/08
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Ivan Boldyrev, 2005/07/09
- Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul, Pascal Bourguignon, 2005/07/09
- Prev by Date:
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
- Next by Date:
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
- Previous by thread:
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
- Next by thread:
Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
- Index(es):