POV-Ray : Newsgroups : povray.unix : Linux(general quiz) Server Time
29 Jul 2024 02:21:16 EDT (-0400)
  Linux(general quiz) (Message 5 to 14 of 24)  
<<< Previous 4 Messages Goto Latest 10 Messages Next 10 Messages >>>
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

From: Nieminen Mika
Subject: Re: Linux (general quiz) [warning long post ahead...]
Date: 9 Apr 1999 20:35:26
Message: <370e8ebe.0@news.povray.org>
Luis M. Ibarra <mib### [at] janoestadisticaunammx> wrote:
: 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

  Nope. At least in this SparcStation the alt-key and the meta-key are two
different keys (the alt-key reads "alt" and the meta-key has a black
square on it) and they are distinguished even by emacs. If I set the
command for M-x it will not work with alt-x.

: *THAT* take you two years to learn?

  Yes.

-- 
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: Mark Gordon
Subject: Re: Linux (general quiz) [warning long post ahead...]
Date: 9 Apr 1999 20:39:24
Message: <370E9185.F37D1C4B@mailbag.com>
Nieminen Mika wrote:
> 
> Luis M. Ibarra <mib### [at] janoestadisticaunammx> wrote:
> : 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
> 
>   Nope. At least in this SparcStation the alt-key and the meta-key are two
> different keys (the alt-key reads "alt" and the meta-key has a black
> square on it) and they are distinguished even by emacs. If I set the
> command for M-x it will not work with alt-x.

I have a machine where the Windows key is the Meta key.  If I alt-x, it
just beeps at me.  I'm not sure whether the same is true of other
Windows keyboards (seems you can't get anything else for Intel machines
any more).

-- 
Mark Gordon
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: George P  Staplin
Subject: Re: Linux(general quiz)
Date: 14 Jul 1999 19:22:26
Message: <378B2139.2D4ED02C@sisna.com>
Mark Gordon wrote:
> 
> 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


I like gvim, it rules!  I use syntax highlighting with gvim and it's
great for POV Ray and Tcl.

http://www.vim.org


Post a reply to this message

From: Francisco Muñoz
Subject: Re: Linux(general quiz)
Date: 1 Nov 1999 17:41:50
Message: <381E23DE.FE8C6E39@geocities.com>
I just use the cooledit that cames with midnight commander in the
console
with some minor tweaks in the .cooledit/Syntax file you could make the
thing
to colour your pov files. It's very intuitive and you could learn how to
use
it in 2 days ...
 Yes I know .. emacs is more powerfull ... i tried it but my lazyness
won.


Un saludo
Francisco


Post a reply to this message

<<< Previous 4 Messages Goto Latest 10 Messages Next 10 Messages >>>

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