Emacs claims i quote lambda but i don't

I added this to my init.el in emacs:

(add-hook 'emacs-startup-hook
  (lambda ()
    (kill-buffer "*scratch*")
    (ido-mode t)
    (global-visual-line-mode 1)))

(add-hook 'clojure-mode-hook
 (lambda ()
    (rainbow-delimiters-mode 1)))

Now emacs automatically turns a word lambdainto a lambda symbol, but I don't know if this is a problem. When I start emacs, it reports:

(lambda (line) ...) quoted with ' rather than with #'

But I do not quote lambda. If I delete the lines of code above, the error will disappear.

Why does this give me this error?

+4
source share
2 answers

This is not an error in the code, but in the code provided by Emacs, which is called by one of the functions that you call. Perhaps this is Emacs # 11357 Error .

, , , sds , emacs-startup-hook. , .emacs.

(ido-mode t)
(global-visual-line-mode 1)
(add-hook 'emacs-startup-hook
  (lambda ()
    (kill-buffer "*scratch*")))

, emacs-startup-hook, , - .emacs ido-mode global-visual-line-mode , , .emacs.

Emacs, *scratch*, . .

+3
  • lambda line; . lambda , .

  • ; .

  • , emacs-startup-hook ; (ido-mode t) (global-visual-line-mode 1) .

+2

All Articles