Skip to main content
more specific title, as this thread deals with a specific case of #' vs '
Source Link

What is the difference between ' and #' in front of a symbol?

I'm a little new to emacsEmacs. When looking at some of the configurations, I found there are two types command in "add-hook".

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

and

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

This has confused me for a long time and I don't know how to search "#'" in google...

Thanks.

What is the difference between ' and #'

I'm a little new to emacs. When looking at some of the configurations, I found there are two types command in "add-hook".

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

and

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

This has confused me for a long time and I don't know how to search "#'" in google...

Thanks.

What is the difference between ' and #' in front of a symbol?

I'm a little new to Emacs. When looking at some of the configurations, I found there are two types command in "add-hook".

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

and

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

This has confused me for a long time and I don't know how to search "#'" in google...

Thanks.

edited tags
Link
Malabarba
  • 23.3k
  • 6
  • 81
  • 166
Source Link
X.Arthur
  • 463
  • 4
  • 9

What is the difference between ' and #'

I'm a little new to emacs. When looking at some of the configurations, I found there are two types command in "add-hook".

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

and

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

This has confused me for a long time and I don't know how to search "#'" in google...

Thanks.