all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A Few Small Questions
@ 2002-06-12  5:52 Scott Goldstein
  2002-06-12  9:18 ` Charles Muller
  0 siblings, 1 reply; 8+ messages in thread
From: Scott Goldstein @ 2002-06-12  5:52 UTC (permalink / raw)


I have two unrelated questions.

1.  How can I find out what variables are valid in the list,
default-frame-alist?  In other, what parameters can I set?

2.  When I run bash in Emacs, I would like it to read my .bash_profile
file.  I have the following in my .emacs in order to do this:

(setq explicit-sh-args '("-login" "-i"))

However, it doesn't work.  Any ideas?

Thanks for the help.

Scott

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A Few Small Questions
  2002-06-12  5:52 A Few Small Questions Scott Goldstein
@ 2002-06-12  9:18 ` Charles Muller
  2002-06-12 11:31   ` Marco Baringer
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Muller @ 2002-06-12  9:18 UTC (permalink / raw)


I am trying to set the default font in my Emacs (in Red Hat) to a larger
size. I found some sample .emacs files on the web that contained
settings such as 

(set-default-font "-*-Courier-normal-r-*-*-16-96-*-*-c-90-*-ansi-")

But when I try these, I get an error message saying that the font I have
listed is not defined. How can I get a list of the fonts that are
defined for my installation?

Chuck

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A Few Small Questions
  2002-06-12  9:18 ` Charles Muller
@ 2002-06-12 11:31   ` Marco Baringer
  2002-06-12 15:38     ` Setting default fonts Charles Muller
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Baringer @ 2002-06-12 11:31 UTC (permalink / raw)


Charles Muller <acmuller@gol.com> writes:

> I am trying to set the default font in my Emacs (in Red Hat) to a larger
> size. I found some sample .emacs files on the web that contained
> settings such as 
> 
> (set-default-font "-*-Courier-normal-r-*-*-16-96-*-*-c-90-*-ansi-")
> 
> But when I try these, I get an error message saying that the font I have
> listed is not defined. How can I get a list of the fonts that are
> defined for my installation?
> 

M-x set-default-font TAB

will give you all the fonts available. this is kind of hackish, but it
works.

use:

(insert (frame-parameter nil 'font))

once you have found a font you like to write this into your .emacs
unless you feel like copying the font name. type the above, hit C-x
C-e and then delete that lisp code.

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
     -Isonard Cohen

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Setting default fonts
  2002-06-12 11:31   ` Marco Baringer
@ 2002-06-12 15:38     ` Charles Muller
  2002-06-12 16:56       ` Chuck Siska
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Muller @ 2002-06-12 15:38 UTC (permalink / raw)


 Marco Baringer helpfully advised:

> 
> M-x set-default-font TAB
> 
> will give you all the fonts available. this is kind of hackish, but it
> works.

My apologies for my denseness--I am completely new to Emacs, and am struggling.

When I do like the above, I then get a request for information like

  Font name:

But I don't know what I am supposed to input here.
 
When I do this:

> (insert (frame-parameter nil 'font))

Then, when I start Emacs, the first thing I get is a listing of an Adobe Courier 12 point font. But I don't know what I should do with this. Is there any chance that I could get you to explain just a bit further. I think I am almost there (I have gotten XML validation working, MEW working, and Japanese input working, so I should be able to work through this matter of default fonts!)

Thanks much,

Chuck

------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Setting default fonts
  2002-06-12 15:38     ` Setting default fonts Charles Muller
@ 2002-06-12 16:56       ` Chuck Siska
  2002-06-13  6:48         ` Charles Muller
  0 siblings, 1 reply; 8+ messages in thread
From: Chuck Siska @ 2002-06-12 16:56 UTC (permalink / raw)


chuck --

to see all the available fonts, first select a buffer into which
you don't mind entering text (e.g., the *scratch* buffer).  now
enter the following lisp expression in that buffer:

(insert (prin1-to-string (x-list-fonts "*")))

place the text cursor at the end of this lisp expression and type
M-x eval-print-last-sexp.

you should see a parenthesized list like the following appear immediately
after that lisp expression.  each entry, in double-qoutes, is a
font description.  (note, i've shortened my output list, here,
from my own 880 entries to just the two shown.

("-*-Mini Pics Red Rock-normal-r-*-*-*-*-96-96-p-*-iso8859-1" "-*-Mini Pics Lil
Vehicles-normal-r-*-*-*-*-96-96-p-*-iso8859-1")

now, i setup my initial font in emacs by executing the following
lisp expressions when i'm running emacs on mswind.  These are
executed automatically in my _emacs (or .emacs) file when emacs
starts up, but you can execute them by hand if you wish.  note,
that i've taken a liberty, here, of replacing some of the font
description elements with a "*" wildcard, but you can just use
one of the font descriptions directly.

; set font to terminal, regular, 6 point.
(setq cs-default-font "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")

(progn
  (setq initial-frame-alist
        (append `((font . ,cs-default-font))
                initial-frame-alist))
  (setq default-frame-alist
        (append `((font . ,cs-default-font))
                default-frame-alist)))

good luck.

-- chuck

Charles Muller wrote:
> 
>  Marco Baringer helpfully advised:
> 
> >
> > M-x set-default-font TAB
> >
> > will give you all the fonts available. this is kind of hackish, but it
> > works.
> 
> My apologies for my denseness--I am completely new to Emacs, and am struggling.
> 
> When I do like the above, I then get a request for information like
> 
>   Font name:
> 
> But I don't know what I am supposed to input here.
> 
> When I do this:
> 
> > (insert (frame-parameter nil 'font))
> 
> Then, when I start Emacs, the first thing I get is a listing of an Adobe Courier 12 point font. But I don't know what I should do with this. Is there any chance that I could get you to explain just a bit further. I think I am almost there (I have gotten XML validation working, MEW working, and Japanese input working, so I should be able to work through this matter of default fonts!)
> 
> Thanks much,
> 
> Chuck
> 
> ------------------------------
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

-- 
                                           |\_/\_.-'""``:-._       
What is life without looking for           . . `; -._      )-;-,_`)
the next cute little bug to play with?     v_,-    _  ),(,.\  ``-' 
                                          _.- _.,-_/ /  ((.'       
-- chuck.siska@conexant.com  `<}:..     ((,.-'   ((,/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Setting default fonts
  2002-06-12 16:56       ` Chuck Siska
@ 2002-06-13  6:48         ` Charles Muller
  0 siblings, 0 replies; 8+ messages in thread
From: Charles Muller @ 2002-06-13  6:48 UTC (permalink / raw)


On Thu, 2002-06-13 at 01:56, Chuck Siska wrote:
> chuck --
> 
> to see all the available fonts, first select a buffer into which
> you don't mind entering text (e.g., the *scratch* buffer).  now
> enter the following lisp expression in that buffer:
> 
> (insert (prin1-to-string (x-list-fonts "*")))
> 
> place the text cursor at the end of this lisp expression and type
> M-x eval-print-last-sexp.
> 
> you should see a parenthesized list like the following appear immediately
> after that lisp expression.  each entry, in double-qoutes, is a
> font description.  (note, i've shortened my output list, here,
> from my own 880 entries to just the two shown.
> 
> ("-*-Mini Pics Red Rock-normal-r-*-*-*-*-96-96-p-*-iso8859-1" "-*-Mini Pics Lil
> Vehicles-normal-r-*-*-*-*-96-96-p-*-iso8859-1")
> 
> now, i setup my initial font in emacs by executing the following
> lisp expressions when i'm running emacs on mswind.  These are
> executed automatically in my _emacs (or .emacs) file when emacs
> starts up, but you can execute them by hand if you wish.  note,
> that i've taken a liberty, here, of replacing some of the font
> description elements with a "*" wildcard, but you can just use
> one of the font descriptions directly.
> 
> ; set font to terminal, regular, 6 point.
> (setq cs-default-font "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
> 
> (progn
>   (setq initial-frame-alist
>         (append `((font . ,cs-default-font))
>                 initial-frame-alist))
>   (setq default-frame-alist
>         (append `((font . ,cs-default-font))
>                 default-frame-alist)))

Great!

Thanks!


Chuck

^ permalink raw reply	[flat|nested] 8+ messages in thread

* A Few Small Questions
@ 2002-06-30 20:05 Scott Goldstein
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Goldstein @ 2002-06-30 20:05 UTC (permalink / raw)


I sent this message a few weeks ago and didn't get a reply.  I thought
that I would try again.

I have two unrelated questions.

1.  How can I find out what variables are valid in the list,
default-frame-alist?  In other words, what parameters can I set?

2.  When I run bash in Emacs, I would like it to read my .bash_profile
file.  I have the following in my .emacs in order to do this:

(setq explicit-sh-args '("-login" "-i"))

However, it doesn't work.  Any ideas?

Thanks for the help.

Scott

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A Few Small Questions
@ 2002-07-01 12:32 Kevin Dziulko
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Dziulko @ 2002-07-01 12:32 UTC (permalink / raw)


Scott

Here is an excerpt from the GNU Emacs Lisp Reference Manual:

Just what parameters a frame has depends on what display mechanism it uses. 
Here is a table of the parameters of an X window frame:


name
The name of the frame.

left
The screen position of the left edge, in pixels.

top
The screen position of the top edge, in pixels.

height
The height of the frame contents, in pixels.

width
The width of the frame contents, in pixels.

window-id
The number of the X window for the frame.

minibuffer
Whether this frame has its own minibuffer. The value t means yes, nil means 
no, only means this frame is just a minibuffer, a minibuffer window (in some 
other frame) means the new frame uses that minibuffer.

font
The name of the font for text in the frame. This is a string.

auto-raise
Whether selecting the frame raises it (non-nil means yes).

auto-lower
Whether deselecting the frame lowers it (non-nil means yes).

vertical-scroll-bars
Whether the frame has a scroll bar for vertical scrolling (non-nil means 
yes).

horizontal-scroll-bars
Whether the frame has a scroll bar for horizontal scrolling (non-nil means 
yes). (Horizontal scroll bars are not currently implemented.)

icon-type
The type of icon to use for this frame when it is iconified. Non-nil 
specifies a bitmap icon, nil a text icon.

foreground-color
The color to use for the inside of a character. We use strings to designate 
colors; the X server defines the meaningful color names.

background-color
The color to use for the background of text.

mouse-color
The color for the mouse cursor.

cursor-color
The color for the cursor that shows point.

border-color
The color for the border of the frame.

cursor-type
The way to display the cursor. There are two legitimate values: bar and box. 
The value bar specifies a vertical bar between characters as the cursor. The 
value box specifies an ordinary black box overlaying the character after 
point; that is the default.

border-width
The width in pixels of the window border.

internal-border-width
The distance in pixels between text and border.

unsplittable
If non-nil, this frame's window is never split automatically.

visibility
The state of visibility of the frame. There are three possibilities: nil for 
invisible, t for visible, and icon for iconified. See section Visibility of 
Frames.

menu-bar-lines
The number of lines to allocate at the top of the frame for a menu bar. The 
default is zero. See section The Menu Bar.

parent-id
The X Window number of the window that should be the parent of this one. 
Specifying this lets you create an Emacs window inside some other 
application's window. (It is not certain this will be implemented; try it 
and see if it works.)



Sorry, don't know anything about bash.

Kevin


>From: Scott Goldstein <sdgoldst@mailandnews.com>
>To: help-gnu-emacs@gnu.org
>Subject: A Few Small Questions
>Date: Sun, 30 Jun 2002 13:05:22 -0700
>
>I sent this message a few weeks ago and didn't get a reply.  I thought
>that I would try again.
>
>I have two unrelated questions.
>
>1.  How can I find out what variables are valid in the list,
>default-frame-alist?  In other words, what parameters can I set?
>
>2.  When I run bash in Emacs, I would like it to read my .bash_profile
>file.  I have the following in my .emacs in order to do this:
>
>(setq explicit-sh-args '("-login" "-i"))
>
>However, it doesn't work.  Any ideas?
>
>Thanks for the help.
>
>Scott
>
>_______________________________________________
>Help-gnu-emacs mailing list
>Help-gnu-emacs@gnu.org
>http://mail.gnu.org/mailman/listinfo/help-gnu-emacs




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-01 12:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-12  5:52 A Few Small Questions Scott Goldstein
2002-06-12  9:18 ` Charles Muller
2002-06-12 11:31   ` Marco Baringer
2002-06-12 15:38     ` Setting default fonts Charles Muller
2002-06-12 16:56       ` Chuck Siska
2002-06-13  6:48         ` Charles Muller
  -- strict thread matches above, loose matches on Subject: below --
2002-06-30 20:05 A Few Small Questions Scott Goldstein
2002-07-01 12:32 Kevin Dziulko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.