Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Invalid read syntax: )"

I'm trying to change the default font in emacs. I followed the instructions on the emacs wiki and added:

(set-face-attribute 'default nil :font "Avenir" ))
(set-frame-font "Avenir" nil t)

to my ~/.emacs file ( I believe this is my init file as I am on a mac).

When I try to run emacs again I get

Warning (initialization): An error occurred while loading `/Users/name/.emacs':

Invalid read syntax: )

The debug message looks like this:

Debugger entered--Lisp error: (invalid-read-syntax ")")
eval-buffer(# nil "/Users/rex/.emacs" nil t) ; Reading at bu$ load-with-code-conversion("/Users/name/.emacs" "/Users/name/.emacs" t t) load("~/.emacs" t t) #[0 "^H\205\262^@
\306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312$
command-line() normal-top-level()

like image 784
chackerian Avatar asked Nov 18 '25 07:11

chackerian


1 Answers

You have an extra right parenthesis.

(set-face-attribute 'default nil :font "Avenir" )
(set-frame-font "Avenir 13" nil t)
like image 175
Robert Columbia Avatar answered Nov 20 '25 17:11

Robert Columbia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!