Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 1999 09:55:58 +0100
From:      Michael Elbel <Michael.Elbel@consol.de>
To:        Mark Ovens <mark@dogma.freebsd-uk.eu.org>
Cc:        questions@freebsd.org
Subject:   Re: Programmers' editor?
Message-ID:  <19991126095558.C48221@consol.de>

next in thread | raw e-mail | index | archive | help
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:

Set your editor to gnuclient and it will do what you want 
(export EDITOR=gnuclient). 
You can also do this on the commandline, of course

$ gnuclient /etc/passwd

You need to load gnuserv in your .emacs file. This is what I have in mine:

(load-library "gnuserv")
(gnuserv-start nil)

I once even found a mutt.el that highlites nicely and provides macros
to modify the header fields of a mail.

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)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991126095558.C48221>