From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MiH Newsgroups: gmane.emacs.help Subject: Disable certain commands in non window mode Date: Thu, 25 Sep 2008 02:27:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <16c4e049-5c92-42f2-bfa9-a731c6d0bd03@k37g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222339332 24955 80.91.229.12 (25 Sep 2008 10:42:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 10:42:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 12:43:10 2008 connect(): Connection refused 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 1KioJR-0007kn-Uh for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 12:43:10 +0200 Original-Received: from localhost ([127.0.0.1]:60301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KioIP-0004rn-9U for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 06:42:05 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k37g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 202.122.16.66 Original-X-Trace: posting.google.com 1222334873 1588 127.0.0.1 (25 Sep 2008 09:27:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 25 Sep 2008 09:27:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k37g2000hsf.googlegroups.com; posting-host=202.122.16.66; posting-account=GdHBKgoAAADqAkmBkuiXdkeUaTvfOVG- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162710 X-Mailman-Approved-At: Thu, 25 Sep 2008 06:41:20 -0400 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:58057 Archived-At: These are certain statements in my .emacs file. (add-to-list 'load-path "~/.emacs.d") (global-font-lock-mode t) (set-scroll-bar-mode 'right) (require 'color-theme) (color-theme-initialize) (color-theme-whateveryouwant) (mwheel-install) ;; rest of the .emacs file The thing is I want to disable loading of the above statements while in non-window (emacs -nw) mode, but want them while using X11. Since I am new to elisp, I am not yet quite sure how to do this. Thanks in advance to anyone providing a solution