From: DaveLG526 <David.Gillooly@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Trouble Adding Color Theme
Date: Sat, 11 Apr 2009 11:52:01 -0700 (PDT) [thread overview]
Message-ID: <eab78c48-7609-49fb-bfc0-5602d8861466@u9g2000pre.googlegroups.com> (raw)
In-Reply-To: 1d499f37-a212-42ea-b7bb-c0515f41b93a@y33g2000prg.googlegroups.com
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 "\b
---------------------------------------------------------------------------------------------------------------------------------------------
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
next prev parent reply other threads:[~2009-04-11 18:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 8:02 Trouble Adding Color Theme DaveLG526
2009-04-11 18:52 ` DaveLG526 [this message]
2009-04-11 18:55 ` Leo
[not found] ` <mailman.5159.1239476164.31690.help-gnu-emacs@gnu.org>
2009-04-11 21:34 ` DaveLG526
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eab78c48-7609-49fb-bfc0-5602d8861466@u9g2000pre.googlegroups.com \
--to=david.gillooly@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).