From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: DaveLG526 Newsgroups: gmane.emacs.help Subject: Re: Trouble Adding Color Theme Date: Sat, 11 Apr 2009 11:52:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1d499f37-a212-42ea-b7bb-c0515f41b93a@y33g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239478854 31854 80.91.229.12 (11 Apr 2009 19:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2009 19:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 11 21:42:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lsj5g-0001Ci-TV for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Apr 2009 21:42:13 +0200 Original-Received: from localhost ([127.0.0.1]:58793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lsj4I-00083i-Cr for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Apr 2009 15:40:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u9g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 231 Original-NNTP-Posting-Host: 71.116.77.228 Original-X-Trace: posting.google.com 1239475921 14290 127.0.0.1 (11 Apr 2009 18:52:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 11 Apr 2009 18:52:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u9g2000pre.googlegroups.com; posting-host=71.116.77.228; posting-account=vEXdlgoAAABytWM2VDAZ3Be0_-uekw5A User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168394 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63675 Archived-At: On Apr 11, 1:02=A0am, DaveLG526 wrote: > I added this following 5 lines to my .emacs file and =A0I 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) > =A0 (color-theme-initialize) > =A0 eval-buffer(# nil "c:/Program Files/Emacs/ > emacs/.emacs" nil t) =A0; Reading at buffer position 443 > =A0 load-with-code-conversion("c:/Program Files/Emacs/emacs/.emacs" "c:/ > Program Files/Emacs/emacs/.emacs" t t) > =A0 load("~/.emacs" t t) > =A0 #[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(# 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 "=08 ---------------------------------------------------------------------------= ------------------------------------------------------------------ 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