help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help on Whitespace-mode in Emacs 24.1.1


From: Peter Dyballa
Subject: Re: Need Help on Whitespace-mode in Emacs 24.1.1
Date: Sun, 26 Aug 2012 10:17:49 +0200

Am 26.08.2012 um 05:15 schrieb Fan:

> In *Warnings* buffer:
> 
>  Warning (initialization): An error occurred while loading `/home/.emacs':
> 
>  Symbol's value as variable is void: font-lock-defaults-alist


This is the actual error! When I have your seven lines

        (message "Enabling whitespace mode ...")
        (require 'whitespace)
        (set-face-background 'whitespace-tab "lime green")
        (setq-default whitespace-style '(tabs trailing))
        (global-whitespace-mode t)
        (message "Enabled whitespace mode.")
        (setq-default whitespace-style '(face tabs trailing))

in my .emacs it launches and works correctly, including only one "WS" in the 
mode-line. Obviously later in your init file something tries to manipulate the 
variable font-lock-defaults-alist which does not exist in GNU Emacs 24. First 
correct this error!

--
Greetings

  Pete       (:
        _    / __    -    -
      _/ \__/_/        -     -
     (´`)      (´`)   -    -
      `´        `´




reply via email to

[Prev in Thread] Current Thread [Next in Thread]