[Top][All Lists]

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


From: Perry Smith
Subject: add-hook
Date: Fri, 25 Jan 2013 13:03:09 -0600

In one of my setup files I have this:

(eval-after-load 'ruby-mode
  '(add-hook 'ruby-mode-hook (function
     (lambda ()
(ruby-electric-mode t)))))

Other places, I just do the add-hook.

The reason I'm asking is because I need to do:

(eval-after-load 'grep
  '(add-to-list 'grep-files-aliases (cons "rails" "*.rb *.erb *.js *.css *.scss")))

because if I don't, I get an error that says grep-files-aliases is not defined.  It appears as if add-hook has smarts that add-to-list does not have but I wanted to be sure which method was preferred.

Thank you,

reply via email to

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