[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: haml plus kill-rectangle hangs emacs
From: |
Kevin Rodgers |
Subject: |
Re: haml plus kill-rectangle hangs emacs |
Date: |
Tue, 06 Apr 2010 00:17:36 -0600 |
User-agent: |
Thunderbird 2.0.0.24 (Macintosh/20100228) |
Audrey Lee wrote:
Hello emacs people.
I have bumped into an issue with emacs when I try to kill-rectangle
inside a file which is in haml-mode.
I see 2 symptoms:
1. Emacs "hangs"
2. The emacs process start hogging 99% of the CPU on my Mac.
Here is info about my emacs:
GNU Emacs 22.3.1 (i386-apple-darwin9.6.0, Carbon Version 1.6.0)
of 2009-01-02 on seijiz.local
Question 1:
- In my .emacs, What might be some simple syntax I can use to
disable kill-rectangle while I am in haml-mode ?
Commands can only be disabled globally, via the disabled property.
But you can disable a keybinding locally, via local-unset-key,
local-set-key, or define-key. E.g.
(add-hook 'html-mode-hook
(lambda ()
(local-set-key (where-is-internal 'kill-rectangle
(current-local-map) t)
'undefined)))
Question 2:
- In my .emacs, What might be some simple syntax I can use to
connect a key to a function, but only for haml-mode, not globally.
(add-hook 'html-mode-hook
(lambda ()
(local-set-key SOME-KEY SOME-COMMAND)))
Question 3:
- Does emacs have some kind of debugger I can use to tell me what
files it is reading when I execute emacs commands?
Emacs has a debugger you can use all the time. This is probably
too intrusive, but you get the idea:
(debug-on-entry 'load)
These are the only emacs questions I can think of today.
Tomorrow is another day. :-)
--
Kevin Rodgers
Denver, Colorado, USA