POV-Ray : Newsgroups : povray.unix : Linux(general quiz) Server Time
31 Oct 2024 23:32:46 EDT (-0400)
  Linux(general quiz) (Message 1 to 10 of 24)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Spider
Subject: Linux(general quiz)
Date: 8 Apr 1999 16:05:49
Message: <370E4A51.211C737C@bahnhof.se>
ok, I've finally setup my Linux partition to work properly, installed pov and
configured X so I know where I am... (hehe)
Now, I was looking through it for a good text-editor.. Preferabllly X..

Anyone has any suggestions for a linux newbie ?
(Yes, I like pico in the shell, but I want more.)
I know I _should_ learn emacs, but...........


A good comparsion for the win32 environment :
htt://www.textpad.com
that is the editor of choice in win32.

So, what do you use out here?
*wants info*
-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Luis M  Ibarra
Subject: Re: Linux(general quiz)
Date: 8 Apr 1999 19:55:10
Message: <370D32B5.D84A103C@jano.estadistica.unam.mx>
Spider wrote:
> I know I _should_ learn emacs, but...........

Learn Emacs, it'll pay back soon. 

Start at the emacs tutorial (CTRL-H then t), after that  browse a little
over the emacs manual at the info system (CTRL-h then i), there are the
manuals for must of the stuff you installed. Use the pov-mode.el and
you'll have color syntax highlithing, word completition, automatic
indenting, etc...

If Emacs seems too complex, you may like jed (It should be easy to write
a povray editing mode [ala pov-mode.el] for jed).

You won't like vi, but it's a wonderfull little editor for a
fast-a-couple-of-corrections edit session. Coming from the MS-world
you'll find my find my sugestions awkard, but take at least a glimpse
over the vi, ed and sed manual pages. 

Anyway, be sure to learn at least the basics of "Regular Expresions" (at
the ed manual page [man ed]), they are *SO* powerfull.

There are a lot of editors for unix (text and X), check
http://freshmeat.net/ , go to the appindex, X, editors. Freshmeat it's a
very good source of... erh... fresh meat... poing*, I mean of new
versions of free software packages.

Be sure to go to http://emacs.org/ before choosing another editor :).


Post a reply to this message

From: Mark Gordon
Subject: Re: Linux(general quiz)
Date: 8 Apr 1999 23:26:47
Message: <370D673E.74DE7D01@mailbag.com>
Luis M. Ibarra wrote:
> 
> Spider wrote:
> > I know I _should_ learn emacs, but...........
> 
> Learn Emacs, it'll pay back soon.

I wonder whether there's a predisposition among people who use POV-Ray
to prefer Emacs to vi?  Any vi partisans out there?

-- 
Mark Gordon (Emacs partisan)
mtg### [at] mailbagcom
http://www.mailbag.com/users/mtgordon/index.html

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/S d-- s-: a- C++$ UA+$ UH+$ UO+$ US+$ UL++++ P+++ L++(+++) E W++ N+
o-- 
K++ w---$ O- M$ V--$ PS++ PE- Y+ PGP->+ t+ 5++ X R+ tv-- b++ DI++$ D+ G 
e++>++++ h- r*%-- y-
------END GEEK CODE BLOCK------


Post a reply to this message

From: Marco Bonetti
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 06:20:46
Message: <370dc66e.0@news.povray.org>
Try Nedit ( http://fnpspa.fnal.gov/nirvana/nedit.html ) Its mutch like the
ms-notepad in interface and hot-keys, really easy to use.
But then.... learn Emacs! C-x C-c.

                                                                            
    - Marco


Spider <spi### [at] bahnhofse> wrote in message 370E4A51.211C737C@bahnhof.se...
> ok, I've finally setup my Linux partition to work properly, installed pov
and
> configured X so I know where I am... (hehe)
> Now, I was looking through it for a good text-editor.. Preferabllly X..
>
> Anyone has any suggestions for a linux newbie ?
> (Yes, I like pico in the shell, but I want more.)
> I know I _should_ learn emacs, but...........
>
>
> A good comparsion for the win32 environment :
> htt://www.textpad.com
> that is the editor of choice in win32.


Post a reply to this message

From: Igrec communication
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 07:21:17
Message: <370DD673.34DEE4FA@cadrus.fr>

> 
> htt://www.textpad.com
> that is the editor of choice in win32.
> 
	
	You must try "nedit" !
	http://www-pat.fnal.gov/nirvana/nedit.html

	Thierry.


Post a reply to this message

From: Nieminen Mika
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 08:06:32
Message: <370ddf38.0@news.povray.org>
Luis M. Ibarra <mib### [at] janoestadisticaunammx> wrote:
: Learn Emacs, it'll pay back soon. 

  I wouldn't say "soon".
  I have used emacs for about 4 years now. It took me about 2 years to learn
just how to reconfigure the keys (for example I wanted alt-x to be the same
as ctrl-x-c, F2 to save, etc).
  I still don't know how to configure the indentation to work the way I
want. There are predefined indentation configurations, but none of those
work as I want.
  I have read manuals and tutorials, but ALL of the are CRYPTIC! It seems
to be a curse with emacs. You simpy _can't_ make an emacs tutorial
(specially about configuring emacs) without being extremely cryptic.
  I have read LOTS of text about configuring the indentation in emacs. I
still don't know how to do it.

  Btw, I'm writing this with emacs. It's almost perfectly configured now.
  'Home' goes to the beginning of the line, 'End' to the end of the line.
  'Page Up' and 'Page Down' moves the cursor _exactly_ the number of rows
up or down that are visible (like any dos/windows editor would do by default).
This means that if I press page up and then page down, I end in the same
place where I started (by default the cursor would end in the top left
corner). Pressing page up in the first page will move the cursor to the
beginning of the text and the same thing with page down.
  Ctrl-up and ctrl-down will scroll the text. Ctrl-Home goes to the
beginning of the text and ctrl-end to the end of the text. Ctrl-right and
ctrl-left go one word to the right and left respectively (although not in
the same way as in text editors usually...).
  Shift+cursor movement paints the text and ctrl-ins, shift-ins and shift-del
work just like in dos/windows editors.
  C-code is colored.
  It took me 4 years to get emacs to work this way. It still isn't perfect.
The main problem is that the indentation doesn't work like I want. There are
some other minor problems too.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Spider
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 17:23:10
Message: <370E60BB.6AEBA5FB@bahnhof.se>
Care to Share ?

This looks like it feels like the Borland Editors in dos. (the pascal one is
actually far better(feeling) than the C one, don't ask me why)


-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Nieminen Mika
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 17:54:27
Message: <370e6903.0@news.povray.org>
Spider <spi### [at] bahnhofse> wrote:
: Care to Share ?

  My .emacs at this moment:

(pc-selection-mode)

(setq auto-save-default nil)
(setq auto-mode-alist
      (append '(("\\.java$" . c++-mode))
     auto-mode-alist))
(setq scroll-step 1)
(set-background-color "black")
(set-foreground-color "white")
(set-cursor-color "white")
(standard-display-european t) 
(set-input-mode (car (current-input-mode)) 
                (nth 1 (current-input-mode)) 
                0) 
(global-set-key '[home] 'beginning-of-line)
(global-set-key '[end] 'end-of-line)
(global-set-key '[delete] 'delete-char)
(global-set-key "\C-y" 'kill-complete-line)
(global-set-key "\C-u" 'yank)
(global-set-key [(alt x)] 'save-buffers-kill-emacs)
(global-set-key [(alt f3)] 'delete-window)
(global-set-key '[f2] 'save-buffer)
(global-set-key "\C-r" 'insert-file)
(global-set-key "\C-h" 'delete-backward-char)

(auto-fill-mode)
(defun kill-complete-line () 
  "Kill the complete line." 
  (interactive) 
  (beginning-of-line) 
  (if (eobp) (error "End of buffer")) 
  (let ((beg (point))) 
    (forward-line 1) 
    (kill-region beg (point)))) 
(setq font-lock-maximum-decoration t) 
(add-hook 'c-mode-hook 'turn-on-font-lock) 
(add-hook 'sh-mode-hook 'turn-on-font-lock)
(global-font-lock-mode t) 
(setq backup-inhibited 't)
;; Options Menu Settings
;; =====================
(cond
 ((and (string-match "XEmacs" emacs-version)
       (boundp 'emacs-major-version)
       (or (and
            (= emacs-major-version 19)
            (>= emacs-minor-version 14))
           (= emacs-major-version 20))
       (fboundp 'load-options-file))
  (load-options-file "/home/warp/.xemacs-options")))
;; ============================
;; End of Options Menu Settings
(defun contents-move (dir checkpoint)
  (let ((oldColumn (current-column)))
    (if (not (pos-visible-in-window-p checkpoint))
        ((lambda ()
           (save-excursion
             (goto-char (window-start))
             (forward-line dir)
             (set-window-start (selected-window) (point))))))
    (forward-line dir)
    (move-to-column oldColumn)))
 
(defun contents-one-down ()
  (interactive)
  (contents-move -1 (point-min)))
 
(defun contents-one-up ()
  (interactive)
  (contents-move 1 (point-max)))
 
(defun generic-page-scroll (lines)
  (let ((oldColumn (current-column)))
    (save-excursion
      (goto-char (window-start))
      (forward-line lines)
      (set-window-start (selected-window) (point)))
    (forward-line lines)
    (move-to-column oldColumn)))
 
(defun page-scroll-up ()
  (interactive)
  (if (not (pos-visible-in-window-p (point-max)))
      (generic-page-scroll (- (1- (window-height)) next-screen-context-lines))
    (goto-char (point-max))))
 
(defun page-scroll-down ()
  (interactive)
  (if (not (pos-visible-in-window-p (point-min)))
      (generic-page-scroll (- next-screen-context-lines (1- (window-height))))
    (goto-char (point-min))))
 
(global-set-key '[(control up)] 'contents-one-down)
(global-set-key '[(control down)] 'contents-one-up)
(global-set-key '[next] 'page-scroll-up)
(global-set-key '[prior] 'page-scroll-down)
(global-set-key '[(control v)] 'page-scroll-up)
(global-set-key '[(meta v)] 'page-scroll-down)


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Spider
Subject: Re: Linux(general quiz)
Date: 9 Apr 1999 17:56:26
Message: <370E6887.780DAE55@bahnhof.se>
Thankyou.

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Luis M  Ibarra
Subject: Re: Linux (general quiz) [warning long post ahead...]
Date: 9 Apr 1999 19:42:27
Message: <370E8F4B.D202AD95@jano.estadistica.unam.mx>
Nieminen Mika wrote:
> : Learn Emacs, it'll pay back soon.
> 
>   I wouldn't say "soon".
>   I have used emacs for about 4 years now. It took me about 2 years to learn
> just how to reconfigure the keys (for example I wanted alt-x to be the same
> as ctrl-x-c, F2 to save, etc).

Taking your example and using information obtained only from the Emacs
manual at the info help system (CTRL-h then i) [most of this info is
also in the tutorial and the emacs manual page (man emacs at the unix
prompt), let's see if we can reconfigurate the keyboard. (I'm using GNU
Emacs 20.3.2)

The tutorial explains thing about commands and how some keys are bounded
to them, also at lines 985-989 briefly explan the apropos help funtion. 

Let's see if there is a command for bound new keys; 

	C-h a
	key

WOW! 17 commands about keys!, is there one for set a key bound to a
command?; 

	C-x o 
	C-s
	set

we find the command "global-set-key", if we key searching (CRTL-s
again), we also find the "local-set-key" command. 

So let's see if this global-set-key will do.

	C-h f
	global-set-key 

The first line of the description is "Give KEY a global binding as
COMMAND.", bingo we found it, also it say how to use it:
"(global-set-key KEY COMMAND)". 

Ok fine. Now we need to know how to pass the key and which command to
pass. Let's do the later first;

	C-h k
	C-x C-c

It says at the first line "C-x C-c runs the command
save-buffers-kill-emacs", So this is the command we have to pass to the
global-set-key command. Now for the key how we say "alt-x"? 
well we say it as M-x. As explained in the tutorial ALT key is the same
as META key (Why the f@#*  did the emacs programmers changed the names
of the keys? (*) see note at end). We must escape the key and the
global-set-key whats a string (It say so in the description), so we
write "\M-x", we also can pass the key as [M-x] or as [(alt x)]. 

We need to pass the command as a reference or the interpreter would use
it as a variable name. (ie 'global-set-key instead of  global-set-key),
so finally the key is bound with

(global-set-key "\M-x" 'global-set-key)

We put that line in the init file ($HOME/.emacs) and we are there.

*THAT* take you two years to learn?, most of the stuff needed is
explained in the tutorial, and the manual has examples of setting keys
in the init file section!. And without touching the documentation a
search in the net would have give you the answer in minutes. Emacs is
complex. Yes I grant you that. But it's not THAT complex, grant me that
:).

Yes, it's not the tipical Windows program. Emacs is MUCH more powerfull,
and more complex but it's all documented!, there a lot of examples in
the manual, and there a lot of info in the net (including .emacs files). 

The basic difference between MS-world and the Unix-world is;

In the unix world you will *HAVE* to read and *understand* the manuals
for even the most basic tasks, but you will be compensated with lots and
lots of freedom and power.

In the MS-world you don't have to read manuals (almost never except for
the most complex programs), but you won't have freedom nor power!. 

An example of that, is Emacs, most of it's functionality is written in
small chunks written in lisp (emacs-lisp) ala plug-ins, the core of
Emacs is infact a complete lisp interpreter and compiler. You don't need
to learn lisp to every day use of emacs, you need to learn some for
customization, and if you learn a lot of emacs-lisp, babe, the heaven is
the limit. That's way you have mail readers, web browsers, arbitrary
precision calculators, address books, file managers, programing
environments, several cultures calendars, etc... all in your editor
without meking it blowded. 

check http://dotfiles.com/ there are configuration files for some
programs.

(*) they didn't change the name, that was the name of the modifiers keys
on the old machines they wrote Emacs for. Emacs is so well written that
it didn't die with the original machine it was written for, isn't it 
wonderfull?.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.