* Test for and adapt to: -nw
@ 2010-08-24 22:23 Tim Johnson
2010-08-25 0:23 ` Tim Johnson
0 siblings, 1 reply; 4+ messages in thread
From: Tim Johnson @ 2010-08-24 22:23 UTC (permalink / raw)
To: help-gnu-emacs
Using emacs 23~ on linux. In some cases it would be preferable for me to
use the -nw (do not use X) initialization option.
1)Is there an emacs function to test for X communication?
example: (using-X-p)
2)Are there any color themes composed especially for emacs?
I would like to do something like this in .emacs:
(if (using-X-p)
(color-theme-gnome) ;; from color-theme.el
(nw-color-theme-gnome)) ;; from where ??
3)Is there something like an .Xresources file for a non-X emacs?
thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Test for and adapt to: -nw
2010-08-24 22:23 Test for and adapt to: -nw Tim Johnson
@ 2010-08-25 0:23 ` Tim Johnson
2010-08-25 6:10 ` Mario Lassnig
0 siblings, 1 reply; 4+ messages in thread
From: Tim Johnson @ 2010-08-25 0:23 UTC (permalink / raw)
To: help-gnu-emacs
On 2010-08-24, Tim Johnson <tim@johnsons-web.com> wrote:
> Using emacs 23~ on linux. In some cases it would be preferable for me to
> use the -nw (do not use X) initialization option.
>
> 1)Is there an emacs function to test for X communication?
> example: (using-X-p)
Found the 'window-system variable. This suffices for the test
that I need.
> 2)Are there any color themes composed especially for emacs?
Should have asked:
2)Are there any color themes composed especially for terminal-mode emacs?
> I would like to do something like this in .emacs:
> (if (using-X-p)
> (color-theme-gnome) ;; from color-theme.el
> (nw-color-theme-gnome)) ;; from where ??
>
> 3)Is there something like an .Xresources file for a non-X emacs?
>.Xdefaults !
I have found the (tty-color-alist) function, which gives me
information on the frame terminal.
answers to question 2 may save me some work on a color scheme for
terminal mode.
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Test for and adapt to: -nw
2010-08-25 0:23 ` Tim Johnson
@ 2010-08-25 6:10 ` Mario Lassnig
2010-08-25 16:18 ` Tim Johnson
0 siblings, 1 reply; 4+ messages in thread
From: Mario Lassnig @ 2010-08-25 6:10 UTC (permalink / raw)
To: help-gnu-emacs
On 8/25/10 2:23 AM, Tim Johnson wrote:
> On 2010-08-24, Tim Johnson<tim@johnsons-web.com> wrote:
>> Using emacs 23~ on linux. In some cases it would be preferable for me to
>> use the -nw (do not use X) initialization option.
>>
>> 1)Is there an emacs function to test for X communication?
>> example: (using-X-p)
> Found the 'window-system variable. This suffices for the test
> that I need.
>> 2)Are there any color themes composed especially for emacs?
> Should have asked:
> 2)Are there any color themes composed especially for terminal-mode emacs?
>
>> I would like to do something like this in .emacs:
>> (if (using-X-p)
>> (color-theme-gnome) ;; from color-theme.el
>> (nw-color-theme-gnome)) ;; from where ??
>>
Here's what I do:
(if (eq (symbol-value 'window-system) nil)
(color-theme-clarity)
(color-theme-robin-hood))
>> 3)Is there something like an .Xresources file for a non-X emacs?
> >.Xdefaults !
> I have found the (tty-color-alist) function, which gives me
> information on the frame terminal.
>
> answers to question 2 may save me some work on a color scheme for
> terminal mode.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Test for and adapt to: -nw
2010-08-25 6:10 ` Mario Lassnig
@ 2010-08-25 16:18 ` Tim Johnson
0 siblings, 0 replies; 4+ messages in thread
From: Tim Johnson @ 2010-08-25 16:18 UTC (permalink / raw)
To: help-gnu-emacs
On 2010-08-25, Mario Lassnig <mario@lassnig.net> wrote:
<..> Here's what I do:
>
> (if (eq (symbol-value 'window-system) nil)
> (color-theme-clarity)
> (color-theme-robin-hood))
Yep, I am using the same test now.
Thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-25 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-24 22:23 Test for and adapt to: -nw Tim Johnson
2010-08-25 0:23 ` Tim Johnson
2010-08-25 6:10 ` Mario Lassnig
2010-08-25 16:18 ` Tim Johnson
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).