all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: mowgli <knowledgeless@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Quite a few emacs questions
Date: 19 May 2007 04:46:57 -0700	[thread overview]
Message-ID: <1179575217.163647.82220@p77g2000hsh.googlegroups.com> (raw)
In-Reply-To: <1179430428.737521.121530@p77g2000hsh.googlegroups.com>

On May 18, 12:33 am, mowgli <knowledgel...@gmail.com> wrote:
> On May 17, 2:07 am, Amy Templeton <amy.g.temple...@gmail.com> wrote:
>
> > CODE:
> > ______________________________
>
> > (defun eshell/clear ()
> >   "Clears the eshell buffer."
> >   (interactive)
> >   (let ((inhibit-read-only t))
> >     (erase-buffer)))
> > ______________________________
>
> [snip]
>
> > after the (erase-buffer) command and hit "C-x C-e" (to evaluate the
> > code). Then test it out in the eshell buffer.
>
> First of all thanks a ton for the nice detail explanations.
>
> Pressing C-x C-e generates some eval errors that I can't paste here in
> firefox since copy/pasting from other apps doesn't seem to work in ff.
>
> But atleast now the clear command in eshell works. Nice
>
> > > How to make eshell work like on full page? Typing any command
> > > scrolls half the page to top.
>
> > Could you be more specific? I'm not really sure what you mean by
> > this. You can go back in the eshell buffer just like any other
> > buffer, if that's your question.
>
> Peter got it right I think. I knew my question could confuse. Sorry.
> Say that I have a directory listing containing about 20 entries. When
> I type ls -l in eshell, I get only the last 10 or so entries. The
> below entries that is. The emacs in X, I can easily press Shift Pg-Up
> to read the first entries tho this is also a pain. But bad thing is
> that in console, Shift Pg-Up in emacs doesn't give you the first
> entries in that list.
>
> Now say you have 20 entries in a dir and you type the clear command in
> eshell. Now do an ls -l mydir. This results in only the bottom 10
> entries. you do ls -l as many times you want but can never see the
> topmost 10 entries. How do you fix that? I hope I'm not confusing
> again.
>
>  > > I'm just installing w3. Does it support frames like the links or
>
> > > elinks browsers?
> > I don't believe so, and neither does emacs-w3m (my browser of
> > choice). You might try to look into a comparison of w3 and
> > emacs-w3m's features before deciding on one; try googling for each
> > one.
>
> I tried using lynx in eshell and it works like a charm. However since
> lynx doesn't support frames, I like links or elinks but running these
> in eshell just outputs grabage all over the screen and I have to kill
> the eshell buffer. If there was a way to run links or elinks, it would
> be just great.
>
> > > When using X, how to change the default font used by emacs? It's
> > > extremely small.
>
> > CODE:
> > _________________________________________________________________
>
> > (if window-system
> >       (set-default-font
> >       "-adobe-courier-medium-r-*-*-14-*-100-100-*-*-iso10646-1"))
> > _________________________________________________________________
> > ...would do this, assuming you wanted that particular font. Enter
> > your font of choice.
>
> Works very nicely. Infact I used this same font just with the value of
> 24 and it's a nice font.
>
> > I'll take these one at a time...
>
> > > M-x color-theme xyz
>
> > CODE:
> > _________________
>
> > (color-theme-xyz)
> > _________________
>
> [snip]
>
> > CODE:
> > ________________________
>
> > (if window-system
> >       (color-theme-xyz))
> > ________________________
> > CODE:
> > _______________________________________________
>
> > (if window-system
> >       (color-theme-xyz)
> >   (color-theme-your-favorite-for-the-terminal))
> > _______________________________________________
>
> Neither of the above works. The acutal command is M-x color-theme-
> select , then pressing enter and selecting from the list of themes
> normally. But even putting (color-theme-select xyz) gives the
> following error in any case:
>
> Symbol's definition function is void : color-theme-euphoria
>
> or
>
> Symbol's definition function is void : color-theme-select-euphoria
>
> euphoria being the theme name.
>
> > CODE:
> > _____________________________________________________
>
> > (add-to-list 'auto-mode-alist '("\\.ses" . ses-mode))
> > _____________________________________________________
>
> > ...inserting, of course, the file or file ending you wanted instead
> > of ".ses" and the mode you wanted instead of "ses-mode."
>
> The shell script mode isn't that important and it's now working
> with .sh file extensions so it's fine.
>
> > setq is the command to set one or more variables.
>
> I needed this explanation. Thanks again.
>
> > > M-x highlight-current-line-globally
>
> > CODE:
> > _____________________________
>
> > (highlight-current-line-on t)
> > _____________________________
> > ...will turn it on. Passing it an argument of nil (instead of t)
> > will turn it off again if it gets on your nerves.
>
> Before it gets on  my nerves, I wish to use none for the bg color and
> a nice color for fg so that only the characters color change telling
> me which line I am on. The command for this is
>
> highlight-current-line-set-bg-color  then press enter and type the
> color of choice
>
> Same for the fg color. But neither of these work. Same error:
>
> Symbol's definition function is void : highlight-current-line-set-bg-
> color
>
> > CODE:
> > __________________________________________________
>
> > (global-set-key (kbd "M-n") 'cyclebuffer-forward)
> > (global-set-key (kbd "M-p") 'cyclebuffer-backward)
> > __________________________________________________
>
> > ...in your .emacs (and eval them the same was as with the first
> > command I suggested). That should make it work.
>
> Both now work nicely. In the cyclebuffer info page, there was
> something else mentioned instead of the kbd and that was causing
> problem it seems.
>
> Thanks for the great help again. WIth all of you helping has generated
> in me more interest in emacs than before. I even printed out the GNU
> Emacs manual by Eric Raymond. Tho it seems a little outdated. Is that
> enough to make me comfy with emacs?
>
> Regards,
> mowgli

Can someone please try to make the ones that do not seem to work for
me in the above post?

Regards,
mowgli

  parent reply	other threads:[~2007-05-19 11:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16  0:42 Quite a few emacs questions mowgli
2007-05-16  7:05 ` Tassilo Horn
2007-05-17  0:23   ` mowgli
2007-05-17  9:22     ` Tassilo Horn
2007-05-17 12:03       ` David Kastrup
2007-05-19 21:21       ` Ian J Cottee
2007-05-17  9:30     ` Daniel Jensen
2007-05-16 21:07 ` Amy Templeton
2007-05-16 21:58   ` Peter Dyballa
2007-05-17  0:43     ` knowledge less
2007-05-17  8:42       ` Peter Dyballa
     [not found]   ` <mailman.751.1179353187.32220.help-gnu-emacs@gnu.org>
2007-05-17  7:01     ` mowgli
     [not found] ` <mailman.749.1179349827.32220.help-gnu-emacs@gnu.org>
2007-05-17 19:33   ` mowgli
2007-05-17 19:53     ` Lowell Gilbert
2007-05-17 20:35     ` Tyler Smith
2007-05-17 21:50       ` mowgli
2007-05-18  0:08         ` Tyler Smith
2007-05-18  0:27           ` mowgli
2007-05-18  0:56             ` Tyler Smith
2007-05-18  7:18               ` Thien-Thi Nguyen
2007-05-18  8:26                 ` mowgli
2007-05-18 19:34                   ` Dieter Wilhelm
2007-05-22  4:38                   ` Xavier Maillard
2007-05-18  0:33           ` mowgli
2007-05-19 11:46     ` mowgli [this message]
2007-05-19 12:56       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.855.1179579415.32220.help-gnu-emacs@gnu.org>
2007-05-22  9:50         ` mowgli
2007-05-22 10:53           ` Lennart Borgman (gmail)
2007-05-22 21:45           ` Xavier Maillard
     [not found]           ` <mailman.969.1179831210.32220.help-gnu-emacs@gnu.org>
2007-05-23  0:58             ` mowgli
2007-05-23  9:26               ` Lennart Borgman (gmail)
2007-05-23 21:36                 ` Allan Gottlieb
2007-05-23 21:40                   ` Lennart Borgman (gmail)
2007-05-23 22:26                     ` Allan Gottlieb
     [not found] <mailman.1043.1179871359.32220.help-gnu-emacs@gnu.org>
2007-05-23  0:50 ` mowgli
2007-05-23  0:59 ` mowgli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1179575217.163647.82220@p77g2000hsh.googlegroups.com \
    --to=knowledgeless@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.