1

In this configuration file, I've discovered the #' operator, which I did not know, used as:

(add-hook 'LaTeX-mode-hook #'flyspell-mode)

I'm wondering what is the difference with writing just

(add-hook 'LaTeX-mode-hook 'flyspell-mode)

The only documentation I could find about this #' operator hints that it may have some effect when the code is byte-compiled, but I don't understand how. Is there any difference in this case? If yes, how can I observe it?

adl
  • 143
  • 5
  • 5
    Related reading: [When to sharp-quote a lambda expression?](http://emacs.stackexchange.com/questions/3595/when-to-sharp-quote-a-lambda-expression) – Dan Nov 16 '15 at 18:55
  • @Dan The first link in the answer to that related question (http://endlessparentheses.com/get-in-the-habit-of-using-sharp-quote.html) might actually be the answer to mine: `#'foo` would give an error at compilation if `foo` is not the name of a function. – adl Nov 16 '15 at 19:53

0 Answers0