From owner-freebsd-questions Fri Nov 26 10:43:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 870DA15081 for ; Fri, 26 Nov 1999 10:43:30 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 8314 invoked from network); 26 Nov 1999 18:43:26 -0000 Received: from userbl76.uk.uudial.com (HELO marder-1.) (62.188.144.183) by smtp.dial.pipex.com with SMTP; 26 Nov 1999 18:43:26 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id SAA00797; Fri, 26 Nov 1999 18:42:46 GMT (envelope-from mark) Date: Fri, 26 Nov 1999 18:42:46 +0000 From: Mark Ovens To: Michael Elbel Cc: questions@freebsd.org Subject: Re: Programmers' editor? Message-ID: <19991126184246.A713@marder-1> References: <19991126095558.C48221@consol.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991126095558.C48221@consol.de> Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Nov 26, 1999 at 09:55:58AM +0100, Michael Elbel wrote: > In lists.freebsd.questions you write: > > >BTW Greg, you mentioned that you use emacs for composing e-mail with > >mutt, which is what I'm doing now. Is there a way to make it (mutt) > >open another buffer in an emacs window that's already running rather > >than starting another instance of emacs? > > You sure it was Greg? I've mentioned this before: > Yes, earlier in this thread (and in the past as well). > Set your editor to gnuclient and it will do what you want > (export EDITOR=gnuclient). OK, I've done that (well, ``setenv EDITOR gnuclient'' as I use csh(1)). > You can also do this on the commandline, of course > > $ gnuclient /etc/passwd > gnuclient is a program? I don't appear to have it on my system. > You need to load gnuserv in your .emacs file. This is what I have in mine: > > (load-library "gnuserv") > (gnuserv-start nil) > Done that, but all I get from emacs is: Error in init file: File error: "Cannot open load file", "gnuserv" Is gnu{serv,client} an add-on and, if so, where can it be d/l from? > I once even found a mutt.el that highlites nicely and provides macros > to modify the header fields of a mail. > Where can it be found? Thanks. > And, to repeat myself. I see no real use trying to learn too much of Emacs' > native editing if there is viper available for those used to vi. At least > me, I'm so much more productive using things like command repetition, > things like "cfX", "dtY" and so on. > > What one probably should do with viper, is set expert level to 5 so one can > get at the Emacs keys and tweak a couple of other things to ones taste. > There's an excellent Info package coming with viper that explains > everything. > > Here's what I have in my .viper: > > (setq viper-inhibit-startup-message 't) > (setq viper-expert-level '5) > (viper-buffer-search-enable) > (setq viper-auto-indent 't) > (setq viper-want-ctl-h-help 't) > (setq viper-ex-style-motion nil) > (setq viper-ex-style-editing-in-insert nil) > (setq viper-keep-point-on-undo nil) > (define-key viper-vi-global-user-map "s" 'switch-to-buffer) > (define-key viper-vi-global-user-map "K" 'kill-buffer) > (define-key viper-vi-global-user-map [backspace] [delete]) > (define-key viper-insert-global-user-map [backspace] [delete]) > (define-key viper-emacs-global-user-map [backspace] [delete]) > > Michael > -- > \|/ > -O- Michael Elbel, ConSol* GmbH, - me@consol.de - 089 / 45841-256 > /|\ Fermentation fault (coors dumped) -- PERL has been described as "the duct tape of the Internet" and "the Unix Swiss Army chainsaw" - Computer Shopper 12/99 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message