[dtrace-discuss] Updated Emacs DTrace mode
Alexander Kolbasov
akolb at eng.sun.com
Mon Jul 16 12:19:32 PDT 2007
>
> > A while ago I posted a simple D mode for emacs. Here is an updated version.
> > Key changes:
> >
> > - Understands all current DTrace keywords
> > - Better imenu support
> > - D mode is now based on C mode, this provides C indentation and other
> > features for free.
>
> This mode is very cool, but this one binding:
>
> > (define-key map "\e\C-h" 'd-mark-function)
>
> ... is surprising for those who are used to M-C-h being
> backward-kill-word. (Of course, it's easy enough to change. But I
> suspect I'm not the only one who will be driven mad by it.)
Hmm,
what I see is C-M-h is by bound to mark-defun in elisp mode and
c-mark-function in c-mode. The GNU emacs manual shows:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Moving-by-Defuns.html
C-M-h
Put region around whole current or following defun (mark-defun).
The backward-kill-word is bound to
http://www.gnu.org/software/emacs/manual/html_node/emacs/Words.html
M-<DEL>
Kill back to the beginning of a word (backward-kill-word).
and in my Emacs it works with M-<backspace> as well.
Did you do any swapping of <DEL> and C-h in your .emacs?
- akolb
More information about the dtrace-discuss
mailing list