Put your cursor over the character ‘
on the line (setq confirm-kill-emacs ‘yes-or-no-p)
and press C-x =
.
Char: ‘ (8216, #o20030, #x2018, file ...) point=698 of 698 (100%) column=0
That's the left quotation mark (with C-u C-x =
you can see its Unicode name: LEFT SINGLE QUOTATION MARK). This character has no special meaning to Emacs.
You need to use the ASCII apostrophe/single-quote character instead:
(setq confirm-kill-emacs 'yes-or-no-p)
(Leaving aside why you'd use yes-or-no-p
here since you've aliased it to y-or-n-p
.)