From a6b1cd7691948c607fe5311ff31f703b251beaba Mon Sep 17 00:00:00 2001 From: Christoffer Sawicki Date: Tue, 31 Aug 2010 22:05:18 +0200 Subject: [PATCH] Only enable Emacs.app keybindings in GUI mode (and not terminal mode) --- textmate.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textmate.el b/textmate.el index 1e5e128..33fe7b1 100644 --- a/textmate.el +++ b/textmate.el @@ -127,7 +127,7 @@ the project root.") (define-key map [(alt down)] 'textmate-column-down) (define-key map [(alt shift up)] 'textmate-column-up-with-select) (define-key map [(alt shift down)] 'textmate-column-down-with-select)) - ((featurep 'ns) ;; Emacs.app + ((and (featurep 'ns) (eq window-system 'ns)) ;; Emacs.app in GUI mode (define-key map [(super meta return)] 'textmate-next-line) (define-key map [(super meta t)] 'textmate-clear-cache) (define-key map [(super meta \])] 'align)