[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disable certain commands in non window mode
From: |
Richard Riley |
Subject: |
Re: Disable certain commands in non window mode |
Date: |
Thu, 25 Sep 2008 11:31:49 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
MiH <md.imad@gmail.com> writes:
> 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
Possibly something like:
(cond ((eq window-system 'x)
; (message "X loaded")
(require 'icicles)
(load "~/.emacs.d/icicles/icicles-install")
(icy-mode t)
; (color-theme-classic)
)
(t (color-theme-tty-dark)))