[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comment/Uncomment in C files?
From: |
Joost Kremers |
Subject: |
Re: Comment/Uncomment in C files? |
Date: |
20 Apr 2008 11:48:13 GMT |
User-agent: |
slrn/0.9.8.1 (Linux) |
Alan Mackenzie wrote:
> (defun sm-C-d ()
> (define-key c-mode-base-map "\C-d" 'comment-dwim)) ; or nil
> (add-hook 'c-initialization-hook 'sm-C-d)
no need to use a defun for that:
(add-hook 'c-initialization-hook #'(lambda ()
(define-key c-mode-base-map "\C-d"
'comment-dwim)
works just as well.
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Re: Comment/Uncomment in C files?, David Hansen, 2008/04/19