[Top][All Lists]

[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 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
;;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).


reply via email to

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