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

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

Re: Trouble Adding Color Theme


From: DaveLG526
Subject: Re: Trouble Adding Color Theme
Date: Sat, 11 Apr 2009 11:52:01 -0700 (PDT)
User-agent: G2/1.0

On Apr 11, 1:02 am, DaveLG526 <David.Gillo...@gmail.com> wrote:
> I added this following 5 lines to my .emacs file and  I also have the
> color-theme-blue.el file in the .emacs.d directory
>
> ;; Color theme, add to .emacs
> (require 'color-theme)
> (color-theme-initialize)
> (load-file "~/.emacs.d/color-theme-blue.el")
> (color-theme-blue)
>
> This is the error message I receive when I started emacs.
> I have no idea what it means.
>
> Any ideas?
>
> Debugger entered--Lisp error: (void-function color-theme-initialize)
>   (color-theme-initialize)
>   eval-buffer(#<buffer  *load*> nil "c:/Program Files/Emacs/
> emacs/.emacs" nil t)  ; Reading at buffer position 443
>   load-with-code-conversion("c:/Program Files/Emacs/emacs/.emacs" "c:/
> Program Files/Emacs/emacs/.emacs" t t)
>   load("~/.emacs" t t)
>   #[nil "
>
> Dave

I removed some additional things in my .emacs file to make debugging
easier (at least for me). The current error message and my .emacs file
is:

I am running on Windows.

This is my current error message when I run emacs with debug on:
I am running on Windows.

This is my current error message when I run emacs with debug on:
--------------------------------------------------------------------------------------------------------------------------------------------

Debugger entered--Lisp error: (void-function color-theme-initialize)
  (color-theme-initialize)
  eval-buffer(#<buffer  *load*> nil "c:/Program Files/Emacs/
emacs/.emacs" nil t)  ; Reading at buffer position 579
  load-with-code-conversion("c:/Program Files/Emacs/emacs/.emacs" "c:/
Program Files/Emacs/emacs/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "


---------------------------------------------------------------------------------------------------------------------------------------------
For reference this is my .emacs file. The color-theme-blue.el file is
in my C:\Program Files\Emacs\emacs\.emacs.d  windows directory

;;
-----------------------------------------------------------------------------
;; General Setup
;;
-----------------------------------------------------------------------------

;;start the emacsclient server
(server-start)
;;(setq load-path (cons "~\chipmarketing\lisp" load-path))

;;(setq load-path (append load-path (list "~lisp\color-theme-6.6.0")))
;;(require 'color-theme)
;;  (load-library "color-theme")
;;    (color-theme-select)

(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror)


;; Color theme
;;(require 'color-theme)
(color-theme-initialize)
(load-file "C:/Program Files/Emacs/.emacs.d/color-theme-blue.el")
(load-theme 'color-theme-blue)




;;(load-file "C:\Program Files\Emacs\emacs\lisp\color-
theme-6.6.0\themes\color-theme-blackboard.el") ;; does not ;;run
;; activate it
;;(color-theme-blackboard)


;; Removed during my debugging

;; Text mode and Auto Fill mode
;; The next three lines put Emacs into Text mode
;; and Auto Fill mode, and are for writers who
;; want to start writing prose rather than code.

;;(setq default-major-mode 'text-mode)
;;(add-hook 'text-mode-hook 'text-mode-hook-identify)
;;(add-hook 'text-mode-hook 'turn-on-auto-fill)



;; Set Geographic Location info

(setq calendar-latitude 37.3)
(setq calendar-longitude -121.9)
(setq calendar-location-name "Campbell, CA")


 ;;Org-mode settings

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-font-lock-mode 1)

;; Change title bar to ~/file-directory if the current buffer is a
;; real file or buffer name if it is just a buffer.
(setq frame-title-format
      '(:eval
        (if buffer-file-name
            (replace-regexp-in-string
             (getenv "HOME") "~"
             (file-name-directory buffer-file-name))
          (buffer-name))))


;; HTML helper mode
;; Add HTML-Helper-Mode. Anymore than this line caused it not to load

(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)




;; format the title-bar to always include the buffer name
(setq frame-title-format "emacs - %b")


;; displays the time in the status bar
(display-time)

(require 'hfyview)
(require 'htmlfontify)
(require 'easymenu)

;;
-----------------------------------------------------------------------------
;; Functions
;;
-----------------------------------------------------------------------------

;; Backup File Location
;;
;; Redefining the make-backup-file-name function in order to get
;; backup files in ~/.backups/ rather than scattered around all over
;; the filesystem. Note that you must have a directory ~/.backups/
;; made.  This function looks first to see if that folder exists.  If
;; it does not the standard backup copy is made.

(defun make-backup-file-name (file-name)
  "Create the non-numeric backup file name for `file-name'."
  (require 'dired)
  (if (file-exists-p "~/backups")
      (concat (expand-file-name "~/backups/")
              (replace-regexp-in-string "/" "!" file-name))
    (concat file-name "~")))



(defun insert-date (prefix)
  "Insert the current date. With prefix-argument, use ISO format. With
   two prefix arguments, write out the day and month name."
  (interactive "P")
  (let ((format (cond
                 ((not prefix) "%A, %B %d, %Y")
                 ((equal prefix '(4)) "%m-%d-%Y")
                 ((equal prefix '(16)) "%m.%d.%Y"))))
    (insert (format-time-string format))))




;; Setup time mode

(autoload 'display-time "time" "Display Time" t)
(condition-case err
    (display-time)
  (error (message "Unable to load Time package.")))
(setq display-time-24hr-format nil)
(setq display-time-day-and-date t)



;;; AsciiTable
(autoload 'ascii-table "ascii-table" nil t)
(autoload 'ascii-table-hex "ascii-table" nil t)
(autoload 'ascii-table-octal "ascii-table" nil t)
(autoload 'ascii-table-decimal "ascii-table" nil t)





;;
-----------------------------------------------------------------------------
;; Macros
;;
-----------------------------------------------------------------------------

;;TBD




;;
-----------------------------------------------------------------------------
;; Key Bindings
;;
-----------------------------------------------------------------------------



;;TBD


reply via email to

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