Showing posts with label lisp. Show all posts
Showing posts with label lisp. Show all posts

09 September 2013

Emacs on Mac-OS: Configuration for Alt- and Meta-Key

Oh what a nuisance, having to configure key-bindings so that Emacs becomes usable on Mac-OS...

The Problem

  • You need a proper META-key to use Emacs.
  • With non-US keyboards, you need the ALT-key to type characters like [, ], { or }. 

 

Command-as-Meta? No way...

People discuss wether to configure the COMMAND-key (aka "apple-key" or CMD) as META. 

Imho impossible, as in *all* other Mac applications, CMD plays a central role (new, open, duplicate, quit, minimize etc.). No way I can unlearn these key combinations.

 

Escape-as-Meta? Your Fingers Run Marathon...

Some people use ESC as Meta. For every of the numerous Meta-commands in Emacs, send your little pinky finger all the way up north-east to Escape-country… no, that feels like an unhealthy amount of movement to me.

 

Left-ALT-as-Meta, Right-Alt-for-Special-Characters

Whow - that's clever: Using the left-Alt key for something different than the right-Alt key...

Simple put the following line in your emacs configuration file (~/emacs.d/user.el or similar):

(setq ns-right-alternate-modifier nil)

That works fine for me...

 

Of course, I have CAPS-Lock mapped to CTRL (in Mac-OS system settings under keyboard)

 

Some more Emacs Links

@pschirmacher pointed me to  http://www.braveclojure.com/basic-emacs/, which contains both a nice setup and pragmatic introduction.

I use the "vanilla Emacs" - of course the key config from above also works in terminal-Emacs. 

06 November 2010

again, Lisp...

Although I'm currently not actively involved in anything close to Lisp, I try to follow every pair of round parenthesis I can find...

A very cool clip (and book)...

(I've not yet read the book, sigh, way too much {work} to do...)

07 November 2007

Dynamic Language Shootout...

You want a new notebook? You know Ruby, Smalltalk, Scheme, Lisp or Python (or Prolog...)?

There's a dynamic language shootout (in German) with some nice prices (a notebook, an iPod etc).

You gotta release your solution under GPL... and fill in a form, seems pretty harmless. And: The task
is brilliant, a little AI, a little UI, loads of fun.

Go, participate. If I find the time, I'll submit a Prolog solution :-)

27 October 2007

Lisp again: Eclipse plugin

Great news:

InfoQ reported about it... Cusp, an Eclipse plugin for Lisp.

One day, when I've spare time, I'm gonna post an experience report :-)
(so you might be better off NOT to wait for it...)

03 August 2007

Finally: Lisp-plugin for Eclipse

We had to wait awfully long for a Eclipse-Lisp plugin (named Dandelion) to appear...

Version 1.0.5 even comes with support for Eclipse 3.3 (Europa) and with SBCL bundled (at least for MacOS and Linux).

I'm sure to blog some experiences one day (when my current customer projects will give me some time...)