unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RE: simple editor required
@ 2003-06-03 11:27 Dmitri.Minaev
  0 siblings, 0 replies; 109+ messages in thread
From: Dmitri.Minaev @ 2003-06-03 11:27 UTC (permalink / raw)


vim -c ':help easy'

--
With best regards,
Dmitri Minaev


> -----Original Message-----
> From: Paul Edwards [mailto:kerravon@nosppaam.w3.to]
> Sent: Tuesday, June 03, 2003 2:47 PM
> To: help-gnu-emacs@gnu.org
> Subject: simple editor required
> 
> 
> I'm wanting to use emacs as a substitute for vi.
> 
> I'm after the following features:
> 
> 1. When I press the "a" key I want an "a" to appear on the screen
> (that rules out "vi").
> 
> 2. When I press the "delete" key I expect the current character
> to be deleted, not the previous character (that rules out 
> Emacs 20.7.1).
> 
> 3. When I hit the enter key I expect the next line to begin underneath
> the last line (that rules out Xemacs 20.4).
> 
> 4. When I attempt to mark a block of text, I don't expect a find or
> a goto to lose my marker (that rules out Xemacs 20.4).
> 
> 5. As per (3), when I have a blank line, I don't want it to insert
> spaces.  I don't mind it inserting spaces so much as I want to be
> able to delete them with ctrl-k.  But when I do that it deletes my
> blank line.  :-(  So I have to delete one character at a time instead.
> 
> Now due to normal beauracacy, it is difficult for me to get a
> different version of emacs installed, and on some machines I
> only have 20.4 and other machines only 20.7.1, so I'd prefer
> both to work.  Is there any workaround?
> 
> I can't seem to stop it getting into C mode when I edit a ".c"
> file.  Basically I don't want any junk loaded, I'm just after a
> basic editor, ie "text mode".  I thought inhibit-default-init
> would stop it from loading junk, but no such luck.
> 
> Here is my .emacs:
> 
> (setq-default tab-width 4)
> 
> (global-set-key [?\C-h] 'delete-backward-char)
> 
> (setq make-backup-files nil)
> 
> (setq inhibit-default-init 't)
> 
> (global-set-key [insertchar] 'overwritemode)
> 
> (setq auto-save-default nil)
> 
> (setq-default indent-tabs-mode nil)
> 
> ;(setq-default indent-according-to-mode nil)
> 
> (setq-default default-major-mode 'text-mode)
> 
> ;(global-set-key "\C-m" 'newline-and-indent)
> (global-set-key [?\C-m] 'newline-and-indent)
> 
> (global-set-key "\M-g" 'goto-line)
> 
> (global-set-key "\M-r" 'replace-string)
> 
> (global-unset-key [delete])
> (global-set-key [delete] 'delete-char)
> 
> ; potential alternatives (nothing works on 20.7.1)
> ;(global-unset-key [deletechar])
> ;(global-set-key [deletechar] 'delete-char)
> ;(global-unset-key (kbd "<delete>"))
> ;(global-set-key (kbd "<delete>") 'delete-char)
> 
> 
> Thanks.  Paul.
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

^ permalink raw reply	[flat|nested] 109+ messages in thread
[parent not found: <mailman.8100.1055869193.21513.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.7691.1055299124.21513.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.7519.1054976930.21513.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.7200.1054643007.21513.help-gnu-emacs@gnu.org>]
* simple editor required
@ 2003-06-03 10:46 Paul Edwards
  2003-06-03 12:19 ` Kevin Dziulko
  2003-06-03 15:12 ` Bruce Ingalls
  0 siblings, 2 replies; 109+ messages in thread
From: Paul Edwards @ 2003-06-03 10:46 UTC (permalink / raw)


I'm wanting to use emacs as a substitute for vi.

I'm after the following features:

1. When I press the "a" key I want an "a" to appear on the screen
(that rules out "vi").

2. When I press the "delete" key I expect the current character
to be deleted, not the previous character (that rules out Emacs 20.7.1).

3. When I hit the enter key I expect the next line to begin underneath
the last line (that rules out Xemacs 20.4).

4. When I attempt to mark a block of text, I don't expect a find or
a goto to lose my marker (that rules out Xemacs 20.4).

5. As per (3), when I have a blank line, I don't want it to insert
spaces.  I don't mind it inserting spaces so much as I want to be
able to delete them with ctrl-k.  But when I do that it deletes my
blank line.  :-(  So I have to delete one character at a time instead.

Now due to normal beauracacy, it is difficult for me to get a
different version of emacs installed, and on some machines I
only have 20.4 and other machines only 20.7.1, so I'd prefer
both to work.  Is there any workaround?

I can't seem to stop it getting into C mode when I edit a ".c"
file.  Basically I don't want any junk loaded, I'm just after a
basic editor, ie "text mode".  I thought inhibit-default-init
would stop it from loading junk, but no such luck.

Here is my .emacs:

(setq-default tab-width 4)

(global-set-key [?\C-h] 'delete-backward-char)

(setq make-backup-files nil)

(setq inhibit-default-init 't)

(global-set-key [insertchar] 'overwritemode)

(setq auto-save-default nil)

(setq-default indent-tabs-mode nil)

;(setq-default indent-according-to-mode nil)

(setq-default default-major-mode 'text-mode)

;(global-set-key "\C-m" 'newline-and-indent)
(global-set-key [?\C-m] 'newline-and-indent)

(global-set-key "\M-g" 'goto-line)

(global-set-key "\M-r" 'replace-string)

(global-unset-key [delete])
(global-set-key [delete] 'delete-char)

; potential alternatives (nothing works on 20.7.1)
;(global-unset-key [deletechar])
;(global-set-key [deletechar] 'delete-char)
;(global-unset-key (kbd "<delete>"))
;(global-set-key (kbd "<delete>") 'delete-char)


Thanks.  Paul.

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

end of thread, other threads:[~2003-06-30  9:58 UTC | newest]

Thread overview: 109+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-03 11:27 simple editor required Dmitri.Minaev
     [not found] <mailman.8100.1055869193.21513.help-gnu-emacs@gnu.org>
2003-06-17 22:53 ` Paul Edwards
2003-06-17 22:56   ` David Kastrup
2003-06-17 23:04     ` Paul Edwards
2003-06-18  7:26   ` Kai Großjohann
     [not found] <mailman.7691.1055299124.21513.help-gnu-emacs@gnu.org>
2003-06-11  2:57 ` Johan Bockgård
2003-06-11 14:49 ` Stefan Monnier
     [not found] <mailman.7519.1054976930.21513.help-gnu-emacs@gnu.org>
2003-06-07 10:19 ` Paul Edwards
2003-06-07 10:49   ` Eli Zaretskii
2003-06-07 11:19   ` lawrence mitchell
2003-06-07 12:35     ` Paul Edwards
2003-06-10 13:40     ` Paul Edwards
2003-06-10 14:19       ` Stefan Monnier
2003-06-11  9:23         ` Paul Edwards
2003-06-10 17:10       ` Kai Großjohann
2003-06-11  9:18         ` Paul Edwards
2003-06-11 11:38           ` Kai Großjohann
2003-06-11 14:47           ` Stefan Monnier
2003-06-12 10:55             ` Paul Edwards
2003-06-12 11:24               ` Kai Großjohann
2003-06-12 12:51                 ` Paul Edwards
2003-06-12 13:35                   ` Kai Großjohann
2003-06-16 10:31                     ` Paul Edwards
2003-06-16 10:47                       ` Sam Halliday
2003-06-17 13:57                         ` Paul Edwards
2003-06-17 16:31                           ` Kai Großjohann
2003-06-16 13:14                       ` Kai Großjohann
2003-06-16 13:48                       ` Stefan Monnier
2003-06-16 15:10                         ` Kai Großjohann
2003-06-17 14:05                           ` Paul Edwards
2003-06-17 16:14                             ` Stefan Monnier
2003-06-17 22:58                               ` Paul Edwards
2003-06-18  9:53                               ` Paul Edwards
2003-06-17 16:32                             ` Kai Großjohann
2003-06-18  9:48                               ` Paul Edwards
2003-06-18 10:19                                 ` Kai Großjohann
2003-06-19 10:26                                   ` Paul Edwards
2003-06-19 15:38                                     ` Kai Großjohann
2003-06-20 10:13                                       ` Paul Edwards
2003-06-20 14:40                                         ` Kai Großjohann
2003-06-20 16:19                                           ` Paul Edwards
2003-06-20 18:08                                             ` Stefan Monnier
2003-06-23 10:45                                               ` Paul Edwards
2003-06-23 20:18                                                 ` Stefan Monnier
     [not found]                                                   ` <cNKJa.34$g_1.1140@news-server.bigpond.net.au>
     [not found]                                                     ` <848yrsgd4s.fsf@lucy.is.informatik.uni-duisburg.de>
     [not found]                                                       ` <RPWJa.1093$g_1.9591@news-server.bigpond.net.au>
2003-06-24 15:25                                                         ` Kai Großjohann
2003-06-24 22:26                                                           ` Paul Edwards
2003-06-24 23:05                                                             ` Stefan Monnier
2003-06-25  7:51                                                               ` Paul Edwards
2003-06-25  6:17                                                             ` Kai Großjohann
     [not found]                                                             ` <843chyfzpp.fsf@lucy.is.informatik.uni-duisburg.de >
     [not found]                                                               ` <tscKa.709$9g2.6501@news-server.bigpond.net.au>
2003-06-25 16:48                                                                 ` Kai Großjohann
2003-06-30  9:58                                                                 ` Paul Edwards
2003-06-20 20:52                                             ` Kai Großjohann
2003-06-23 10:46                                           ` Paul Edwards
2003-06-23 13:45                                             ` Kai Großjohann
2003-06-23 22:55                                               ` Paul Edwards
2003-06-24  7:16                                                 ` Kai Großjohann
2003-06-17 16:33                             ` Kai Großjohann
2003-06-18  9:49                               ` Paul Edwards
2003-06-17 16:58                             ` Kevin Dziulko
2003-06-19 16:03                             ` Stefan Monnier
2003-06-17 13:59                         ` Paul Edwards
2003-06-17 16:06                           ` Stefan Monnier
2003-06-18  9:50                             ` Paul Edwards
2003-06-18 10:18                               ` Kai Großjohann
2003-06-19 10:32                                 ` Paul Edwards
2003-06-19 19:32                                   ` Kai Großjohann
2003-06-20  9:58                                     ` Paul Edwards
2003-06-18 18:46                               ` Stefan Monnier
2003-06-12 16:03               ` Stefan Monnier
2003-06-07 15:06   ` Stefan Monnier
2003-06-07 16:33     ` Eli Zaretskii
     [not found] <mailman.7200.1054643007.21513.help-gnu-emacs@gnu.org>
2003-06-03 13:51 ` Paul Edwards
2003-06-03 14:26   ` Stefan Monnier
2003-06-11  1:53     ` Ben Key
2003-06-11 15:03       ` Eli Zaretskii
2003-06-03 15:06   ` Peter Lee
2003-06-03 15:39   ` Kevin Rodgers
2003-06-03 18:22   ` kgold
2003-06-03 20:13   ` Jon Kåre Hellan
2003-06-05 17:12   ` Kai Großjohann
2003-06-06  6:15     ` Paul Edwards
2003-06-06 11:44       ` Eli Zaretskii
2003-06-06 18:00       ` Harry Putnam
     [not found]       ` <mailman.7492.1054922593.21513.help-gnu-emacs@gnu.org>
2003-06-06 20:12         ` Peter Lee
2003-06-07  1:36           ` Harry Putnam
     [not found]           ` <mailman.7510.1054949869.21513.help-gnu-emacs@gnu.org>
2003-06-07  2:44             ` Peter Lee
2003-06-09 20:54           ` David Masterson
2003-06-11 21:03           ` kgold
2003-06-11 22:11             ` Eli Zaretskii
     [not found]             ` <mailman.7746.1055369497.21513.help-gnu-emacs@gnu.org>
2003-06-12  0:28               ` Benjamin Rutt
2003-06-12  1:05                 ` Kin Cho
2003-06-12  4:05                   ` Benjamin Rutt
2003-06-12  7:11                     ` Kin Cho
2003-06-12 16:23                       ` Peter Lee
2003-06-12 19:37                       ` Benjamin Rutt
2003-06-12  4:55             ` Galen Boyer
2003-06-12  7:18               ` Kin Cho
2003-06-07  3:43         ` Paul Edwards
2003-06-07  9:28           ` Stein A. Stromme
     [not found]       ` <mailman.7449.1054900407.21513.help-gnu-emacs@gnu.org>
2003-06-07  3:49         ` Paul Edwards
2003-06-07  9:08           ` Eli Zaretskii
2003-06-08 10:19       ` Kai Großjohann
  -- strict thread matches above, loose matches on Subject: below --
2003-06-03 10:46 Paul Edwards
2003-06-03 12:19 ` Kevin Dziulko
2003-06-03 15:12 ` Bruce Ingalls
2003-06-03 23:22   ` Paul Edwards
2003-06-04 12:57     ` Bruce Ingalls
2003-06-05 14:10       ` Paul Edwards
2003-06-05 17:08     ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).