comp.emacs
[Top] [All Lists]

Re: setq

Subject: Re: setq
From: Paul Donnelly
Date: Wed, 20 Aug 2008 21:44:23 -0500
Newsgroups: comp.emacs

"Bill Cunningham" <nospam@xxxxxxxxx> writes:

>     I am trying to get gnus set up and running on emacs. I need to press the 
> meta key and x. What does this do ? I am supposed to enter this text 
> somewhere.
>
> (setq gnus-select-method '(nntp "news.server.net")) I just don't know how to 
> setup things with emacs.

Pressing M-x (which is probably Alt+x on your keyboard) gives you a
prompt in the minibuffer at the very bottom of the screen in which you
can type an emacs command. Any Emacs command that you might initiate
via hotkey could also be typed here by name. For example, "M-x
previous-line" (which translates to pressing Alt+x, typing
"previous-line" at the prompt, then pressing Enter) will move the
cursor up a line (this command can also be invoked with C-p or the up
arrow key).

As for the text you need to enter somewhere, that's some Lisp code for
Emacs to evaluate, and there are many places where you *could* put it
(which is the fun of Emacs). Where you ought to put it in this case is
in the file .gnus.el, in your home directory. If this file does not
exist, create it. This file gets loaded when you start Gnus.

The rest of Emacs is configured in this same way, placing Lisp code in
your .emacs file, which is loaded on Emacs startup. You can also tell
Emacs to evaluate any code that you have in an Emacs window, with the
eval-last-sexp command. You can also bring up a prompt for Lisp code
by pressing M-: . Lisp code is different from the Emacs commands
mentioned above--commands are written in Lisp code, but are set up so
that they are easy to invoke interactively, while a plain old Lisp
function is easy to use when writing code, but not as easy to type
every time you want to run it.

<Prev in Thread] Current Thread [Next in Thread>
  • setq, Bill Cunningham
    • Re: setq, Paul Donnelly <=
Privacy Policy