Hi guys,
I was trying to start customizing emacs using the .emacs file, I just wanted it to default to k&r style in c-mode, but I just get errors now.
I hoped it would really be as simple as the online tutorial implied but it's not. The default .emacs file without any modification is causing the problem, this is what I have.
Code:
;;;;
~(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(show-paren-mode t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(setq -default-style "k&r"
c-basic-offset 4)
What I wanted was for it to just start as normal but default to k&r style when going into c- mode. If I remove the last bit, it still comes up with errors.
Kind regards
P166