From cf455f222d6b6c7fef78bd659541312b18cbd882 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 8 May 2010 22:36:16 -0700 Subject: [PATCH] map cmd to meta in emacs.app 23.2 --- emacs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs b/emacs index c9a1be9..ade38ab 100644 --- a/emacs +++ b/emacs @@ -9,6 +9,13 @@ ;; don't litter my filesystem with ~ files! (setq make-backup-files nil) +;; map cmd to meta (Emacs.app 23.2) +(when macosx-p + (setq mac-option-key-is-meta nil) + (setq mac-command-key-is-meta t) + (setq mac-command-modifier 'meta) + (setq mac-option-modifier nil)) + ;;;;;;;;;;;;;;;;;;;;;; ;; setup load paths ;; ;;;;;;;;;;;;;;;;;;;;;; @@ -346,8 +353,6 @@ ;; web searches (global-set-key "\C-zwg" 'web-search-google) (global-set-key "\C-zww" 'web-search-wikipedia) -(global-set-key "\C-zwih" 'web-search-iso-hunt) -(global-set-key "\C-zwpb" 'web-search-pirate-bay) ;; extend Emacs' default key binding space (global-set-key "\C-x\C-b" 'bs-show) ; use the buffer list buffer menu