[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking emacs version
From: |
Jonathan Groll |
Subject: |
Re: checking emacs version |
Date: |
Tue, 24 Feb 2009 16:29:37 +0200 |
User-agent: |
Mutt/1.5.13 (Linux mail 2.6.18.8-linode16 i686) |
On Mon, Feb 23, 2009 at 08:21:32PM -0800, Eric wrote:
No, sorry! I totally failed to say what I was actually doing -- not
checking emacs versions but checking emacs ports: I use Carbon Emacs
on my mac at home, and vanilla emacs on my server, and want to set
some Carbon-specific variables when I'm at home. The string "Carbon"
show up in (emacs-version), that's why I was thinking that might be
how I have to do it.
I have the following in my .emacs, if it'll help:
; Cocoa emacs, for some bizarre reason DELETE key is bound to
backward-delete-char-untabify
;;and make home and end behave in a non-mac way!
(if (string-match "darwin" (version))
( progn
(global-set-key (kbd "<kp-delete>") 'delete-char)
(global-set-key (kbd "<backspace>") 'backward-delete-char)
(global-set-key (kbd "<home>") 'move-beginning-of-line)
(global-set-key (kbd "<end>") 'move-end-of-line)
) )
To give you an idea of how others use it (and you may like pc-type
home, end, delete, backspace keys like I do).
Cheers,
Jonathan
Re: checking emacs version, Leo, 2009/02/24
Message not available
Re: checking emacs version, Pascal J. Bourguignon, 2009/02/24