[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-set-key in text-mode

From: Dave Benjamin
Subject: Re: global-set-key in text-mode
Date: Sat, 23 Feb 2008 23:12:32 -0700
User-agent: Mozilla-Thunderbird (X11/20080110)

address@hidden wrote:
I've gotten it to work through dumb trial and error.  I didn't use the
add-hook command, just a straight

(define-key text-mode-map "\M-s" 'save-buffer)

in my .emacs.

Thanks for steering me in the right direction.

FWIW, I have the following in my .emacs:

;; keep text-mode from stealing M-s key binding
(define-key text-mode-map "\es" nil)
(define-key text-mode-map "\eS" nil)

This way, my global binding works as intended.


reply via email to

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