all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Two quick questions
@ 2003-12-12 16:28 Hemond, Steve
  2003-12-13 17:37 ` Brad Collins
  0 siblings, 1 reply; 14+ messages in thread
From: Hemond, Steve @ 2003-12-12 16:28 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

Hi people,

I have two questions :

1. How can I make Emacs open the directory list in the buffer instead of popping up an X-Window? I would prefer use the keyboard 100% of the time.

2. How can I make Emacs understand these filetypes :
	.py  (Python files)
      .php (Php files)
      .rb  (Ruby files)

   I luckily found php-mode.el but I didn't find it on the Emacs Wiki page. Any other repository for file support and syntax highlighting?

Please don't tell me to RTFM because I just finished reading the official Emacs manual.

Thanks in advance,

Best regards,

Steve Hemond
Programmeur Analyste / Analyst Programmer
Smurfit-Stone, Ressources Forestières
La Tuque, P.Q.
Tel.: (819) 676-8100 X2833
shemond@smurfit.com 


[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Two quick questions
       [not found] <mailman.1642.1071250578.399.help-gnu-emacs@gnu.org>
@ 2003-12-12 23:25 ` Kevin Rodgers
  0 siblings, 0 replies; 14+ messages in thread
From: Kevin Rodgers @ 2003-12-12 23:25 UTC (permalink / raw)


Hemond, Steve wrote:

> 1. How can I make Emacs open the directory list in the buffer instead of popping up an X-Window? I would prefer use the keyboard 100% of the time.


What command are you using to do that?


> 2. How can I make Emacs understand these filetypes :
> 	.py  (Python files)
>       .php (Php files)
>       .rb  (Ruby files)

(setq auto-mode-alist
       (cons '("\\/.py\\'" . python-mode) auto-mode-alist))

etc.

-- 
Kevin Rodgers

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

* Re: Two quick questions
  2003-12-12 16:28 Hemond, Steve
@ 2003-12-13 17:37 ` Brad Collins
  0 siblings, 0 replies; 14+ messages in thread
From: Brad Collins @ 2003-12-13 17:37 UTC (permalink / raw)


"Hemond, Steve" <SHEMOND@SMURFIT.com> writes:


> 2. How can I make Emacs understand these filetypes :
> 	.py  (Python files)
>       .php (Php files)
>       .rb  (Ruby files)
>

There is a very good ruby mode which comes bundled with the ruby
distribution -- download the latest version of Ruby and look around
inside for .el files.

http://www.rubycentral.com has a couple of pages on setting up the
mode and they have a few other nice pieces of code which you can put
in your .emacs which will make life easier.

Once you've started using M-x ruby-eval-buffer you'll wonder how you
ever lived without it.

b/

--
Brad Collins
Chenla Labs
Bangkok, Thailand

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

* Two quick questions
@ 2006-09-30  4:55 Tong Wang
  2006-09-30  5:03 ` Tong Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Tong Wang @ 2006-09-30  4:55 UTC (permalink / raw)


Hi,
    Sorry to bother you guys with naive questions, did some search but couldn't find answers.
   1:  To switch to another buffer, after issue C-x b,  and type something in minibuffer followed by Tab for completion,
        is there any way to scroll through those possible completions in minibuffer, instead of having to type more words
        or go to  the newly opened buffer to chose one ?
   2:  What are the hotkeys for minimize, restore, maximize the whole frame ? (using emacs in windows)

Thanks a lot for any help.

best.  

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

* Re: Two quick questions
  2006-09-30  4:55 Tong Wang
@ 2006-09-30  5:03 ` Tong Wang
  2006-09-30  8:56 ` Peter Dyballa
  2006-09-30  9:04 ` Eli Zaretskii
  2 siblings, 0 replies; 14+ messages in thread
From: Tong Wang @ 2006-09-30  5:03 UTC (permalink / raw)
  Cc: help-gnu-emacs

Hi, 
    I just figured out how to minimize frame, but is there any way to do "restore down" ?
thanks

----- Original Message -----
From: Tong Wang <wangtong@usc.edu>
Date: Friday, September 29, 2006 9:55 pm
Subject: Two quick questions
To: help-gnu-emacs@gnu.org

> Hi,
>    Sorry to bother you guys with naive questions, did some search 
> but couldn't find answers.
>   1:  To switch to another buffer, after issue C-x b,  and type 
> something in minibuffer followed by Tab for completion,
>        is there any way to scroll through those possible 
> completions in minibuffer, instead of having to type more words
>        or go to  the newly opened buffer to chose one ?
>   2:  What are the hotkeys for minimize, restore, maximize the 
> whole frame ? (using emacs in windows)
> 
> Thanks a lot for any help.
> 
> best.  
> 

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

* Re: Two quick questions
  2006-09-30  4:55 Tong Wang
  2006-09-30  5:03 ` Tong Wang
@ 2006-09-30  8:56 ` Peter Dyballa
  2006-09-30  9:04 ` Eli Zaretskii
  2 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2006-09-30  8:56 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 30.09.2006 um 06:55 schrieb Tong Wang:

>    1:  To switch to another buffer, after issue C-x b,  and type  
> something in minibuffer followed by Tab for completion,
>         is there any way to scroll through those possible  
> completions in minibuffer, instead of having to type more words
>         or go to  the newly opened buffer to chose one ?

TAB.

--
Greetings

   Pete

When in doubt, use brute force.
                             -- Ken Thompson

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

* Re: Two quick questions
  2006-09-30  4:55 Tong Wang
  2006-09-30  5:03 ` Tong Wang
  2006-09-30  8:56 ` Peter Dyballa
@ 2006-09-30  9:04 ` Eli Zaretskii
  2 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2006-09-30  9:04 UTC (permalink / raw)


> Date: Fri, 29 Sep 2006 21:55:04 -0700
> From: Tong Wang <wangtong@usc.edu>
> 
>     Sorry to bother you guys with naive questions, did some search but couldn't find answers.

What did you search?  This information is in the Emacs manual, which
is available on-line from within Emacs.  Type "i C-x b" inside Emacs's
manual, and you will be led to the section which explains the command
"C-x b", and has a cross-reference to the section about completion.
(Note: You should type the literal characters C - x b after `i' in the
above command, not press Ctrl and hit x as usual.)

>    1:  To switch to another buffer, after issue C-x b,  and type something in minibuffer followed by Tab for completion,
>         is there any way to scroll through those possible completions in minibuffer, instead of having to type more words
>         or go to  the newly opened buffer to chose one ?

Type `?' after "C-x b", and Emacs will pop a window with possible
completions.

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

* Re: Two quick questions
       [not found] <mailman.7606.1159592109.9609.help-gnu-emacs@gnu.org>
@ 2006-09-30 23:24 ` Ajit Mylavarapu
  2006-10-01 15:21   ` Andreas Roehler
  2006-10-01 10:17 ` Colin S. Miller
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Ajit Mylavarapu @ 2006-09-30 23:24 UTC (permalink / raw)


Tong Wang wrote:
> Hi,
>     Sorry to bother you guys with naive questions, did some search but couldn't find answers.
>    1:  To switch to another buffer, after issue C-x b,  and type something in minibuffer followed by Tab for completion,
>         is there any way to scroll through those possible completions in minibuffer, instead of having to type more words
>         or go to  the newly opened buffer to chose one ?
>    2:  What are the hotkeys for minimize, restore, maximize the whole frame ? (using emacs in windows)
> 
> Thanks a lot for any help.
> 
> best.  
> 
> 
Use the cycle-buffer.el 
http://www.emacswiki.org/cgi-bin/wiki/cycle-buffer.el

You can then use a shortcut key to cycle through the buffers.

-Ajit.

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

* Re: Two quick questions
       [not found] <mailman.7606.1159592109.9609.help-gnu-emacs@gnu.org>
  2006-09-30 23:24 ` Two quick questions Ajit Mylavarapu
@ 2006-10-01 10:17 ` Colin S. Miller
  2006-10-07 19:29 ` Giacomo Boffi
  2006-10-08  8:40 ` lgfang
  3 siblings, 0 replies; 14+ messages in thread
From: Colin S. Miller @ 2006-10-01 10:17 UTC (permalink / raw)


Tong Wang wrote:
> Hi,
>     Sorry to bother you guys with naive questions, did some search but couldn't find answers.
>    1:  To switch to another buffer, after issue C-x b,  and type something in minibuffer followed by Tab for completion,
>         is there any way to scroll through those possible completions in minibuffer, instead of having to type more words
>         or go to  the newly opened buffer to chose one ?

Tong,
Not exactly what you asked for but,

C-x C-b will display a list of all buffers; you can pick the one you want.

M-x bury-buffer will send the current buffer to the back of the z-order.
I've bound this to C-x C-h, and find it handy for cycling buffers.


HTH,
Colin S. Miller

-- 
Replace the obvious in my email address with the first three letters of the hostname to reply.

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

* Re: Two quick questions
  2006-09-30 23:24 ` Two quick questions Ajit Mylavarapu
@ 2006-10-01 15:21   ` Andreas Roehler
  2006-10-01 16:11     ` Drew Adams
  0 siblings, 1 reply; 14+ messages in thread
From: Andreas Roehler @ 2006-10-01 15:21 UTC (permalink / raw)


Ajit Mylavarapu wrote:

> Tong Wang wrote:
>> Hi,
>>     Sorry to bother you guys with naive questions, did some
>>     search but couldn't find answers.
>>    1:  To switch to another buffer, after issue C-x b,  and
>>    type something in minibuffer followed by Tab for
>>    completion,
>>         is there any way to scroll through those possible
>>         completions in minibuffer, instead of having to type
>>         more words
>>         or go to  the newly opened buffer to chose one ?
>>    2:  What are the hotkeys for minimize, restore, maximize
>>    the whole frame ? (using emacs in windows)
>> 
>> Thanks a lot for any help.
>> 
>> best.
>> 
>> 
> Use the cycle-buffer.el
> http://www.emacswiki.org/cgi-bin/wiki/cycle-buffer.el
> 
> You can then use a shortcut key to cycle through the buffers.
> 
> -Ajit.

There is also

URL: http://www.emacswiki.org/cgi-bin/wiki/icicles-mode.el

seems still more elaborated.

Andreas Roehler

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

* RE: Two quick questions
  2006-10-01 15:21   ` Andreas Roehler
@ 2006-10-01 16:11     ` Drew Adams
  0 siblings, 0 replies; 14+ messages in thread
From: Drew Adams @ 2006-10-01 16:11 UTC (permalink / raw)


    >>    To switch to another buffer, after issue C-x b,  and
    >>    type something in minibuffer followed by Tab for
    >>    completion,
    >>         is there any way to scroll through those possible
    >>         completions in minibuffer, instead of having to type
    >>         more words
    >>         or go to  the newly opened buffer to chose one ?
    >
    > Use the cycle-buffer.el
    > http://www.emacswiki.org/cgi-bin/wiki/cycle-buffer.el
    > You can then use a shortcut key to cycle through the buffers. -Ajit.

    There is also
    URL: http://www.emacswiki.org/cgi-bin/wiki/icicles-mode.el
    seems still more elaborated.

(Thanks for the plug.) There are many ways to switch among buffers,
including different ways to cycle among them or match their names. Different
users like different approaches, whether due to the different ways they use
Emacs or just to personal preference.

Here is "Switch-Buffers Central":
http://www.emacswiki.org/cgi-bin/wiki/CategoryBufferSwitching.

The OP said he couldn't find anything on this by searching. Always remember
that you can search not only the Emacs manual but also the Emacs Wiki:
http://www.emacswiki.org/cgi-bin/wiki/SiteMap. The Wiki includes libraries
that are not included within Emacs itself, and it also often includes
discussion and advice about different approaches, including vanilla Emacs
features.

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

* Re: Two quick questions
       [not found] <mailman.7606.1159592109.9609.help-gnu-emacs@gnu.org>
  2006-09-30 23:24 ` Two quick questions Ajit Mylavarapu
  2006-10-01 10:17 ` Colin S. Miller
@ 2006-10-07 19:29 ` Giacomo Boffi
  2006-10-09 16:39   ` Peter Tury
  2006-10-08  8:40 ` lgfang
  3 siblings, 1 reply; 14+ messages in thread
From: Giacomo Boffi @ 2006-10-07 19:29 UTC (permalink / raw)


Tong Wang <wangtong@usc.edu> writes:

>    1: To switch to another buffer, after issue C-x b, and type
>       something in minibuffer followed by Tab for completion, is
>       there any way to scroll through those possible completions in
>       minibuffer, instead of having to type more words or go to the
>       newly opened buffer to chose one ?

when you have already the buffers' completions in a window above the
minibuffer, press "Page Up"

at this point, you can select the required buffer with cursor keys,
and switch using RET

-- 
Israele l'abbiamo fatto noi, e teoricamente starebbe a noi salvaguardarlo.
Ma Israele si comporta come uno stato indipendente, e di quello che
diciamo noi se ne sbatte i coglioni.                     -- Termy, in IFQ

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

* Re: Two quick questions
       [not found] <mailman.7606.1159592109.9609.help-gnu-emacs@gnu.org>
                   ` (2 preceding siblings ...)
  2006-10-07 19:29 ` Giacomo Boffi
@ 2006-10-08  8:40 ` lgfang
  3 siblings, 0 replies; 14+ messages in thread
From: lgfang @ 2006-10-08  8:40 UTC (permalink / raw)


I found swbuff and tabbar handy.

>>>>> "Tong" == Tong Wang <wangtong@usc.edu> writes:

    Tong> Hi, Sorry to bother you guys with naive questions, did some search but
    Tong> couldn't find answers.  1: To switch to another buffer, after issue
    Tong> C-x b, and type something in minibuffer followed by Tab for
    Tong> completion, is there any way to scroll through those possible
    Tong> completions in minibuffer, instead of having to type more words or go
    Tong> to the newly opened buffer to chose one ?  2: What are the hotkeys for
    Tong> minimize, restore, maximize the whole frame ? (using emacs in windows)

    Tong> Thanks a lot for any help.

    Tong> best.



-- 
Regards

Fang lun gang

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

* Re: Two quick questions
  2006-10-07 19:29 ` Giacomo Boffi
@ 2006-10-09 16:39   ` Peter Tury
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Tury @ 2006-10-09 16:39 UTC (permalink / raw)


Giacomo Boffi <giacomo.boffi@polimi.it> writes:

>>    1: To switch to another buffer, after issue C-x b, and type
>>       something in minibuffer followed by Tab for completion, is
>>       there any way to scroll through those possible completions in
>>       minibuffer, instead of having to type more words or go to the
>>       newly opened buffer to chose one ?

After C-x b, you can go through all the possible elements (buffer
names) right inside the minibuffer by repeating C-s as many times as
adequate.

Also note, that when you type something into the minibuffer (after C-x
b) it is not necessarily the beginnig of a buffer's name: it can be
the middle or end of it: e.g. if you have several abcdefghijkl....txt
buffers but want to visit the only one abcdefghijkl...hlp, then you
can type ".h" and it will skip to the desired file immediately...

Maybe you have to set the variable icomplete-mode to t in your .emacs
file for this?

Br,
P

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

end of thread, other threads:[~2006-10-09 16:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7606.1159592109.9609.help-gnu-emacs@gnu.org>
2006-09-30 23:24 ` Two quick questions Ajit Mylavarapu
2006-10-01 15:21   ` Andreas Roehler
2006-10-01 16:11     ` Drew Adams
2006-10-01 10:17 ` Colin S. Miller
2006-10-07 19:29 ` Giacomo Boffi
2006-10-09 16:39   ` Peter Tury
2006-10-08  8:40 ` lgfang
2006-09-30  4:55 Tong Wang
2006-09-30  5:03 ` Tong Wang
2006-09-30  8:56 ` Peter Dyballa
2006-09-30  9:04 ` Eli Zaretskii
     [not found] <mailman.1642.1071250578.399.help-gnu-emacs@gnu.org>
2003-12-12 23:25 ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2003-12-12 16:28 Hemond, Steve
2003-12-13 17:37 ` Brad Collins

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.