help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: add-hook


From: Dmitry Gutov
Subject: Re: add-hook
Date: Sat, 26 Jan 2013 08:03:59 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

"Drew Adams" <address@hidden> writes:
> If HOOK is void then it is initialized to nil.
>
> (add-hook 'ruby-mode-hook (lambda () (ruby-electric-mode t)))

Or, even shorter:

(add-hook 'ruby-mode-hook 'ruby-electric-mode)



reply via email to

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