[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: update-alternatives priorities for editors



Manoj Srivastava <srivasta@debian.org> writes:

> On Fri, 25 Jul 2003 09:21:47 +0100, Colin Watson <cjwatson@debian.org> said: 
>
>> /usr/bin/editor is not only something invoked directly. It's also
>> invoked by programs as the default editor. And, if vim is the only
>> editor installed on the system, it had better be the default editor
>> for such programs! 
>
> 	Is that not an argument for emacs also providing
>  /usr/bin/editor alternatives, since emacs may be the sole editor on
>  the system?

It might just not be very useful by default since Emacs usually takes quite
some time to startup, and therefore people prefer to use emacsclient
if they really set $EDITOR to something emacsish.  OTOH, for
emacsclient to work, you actually need some code in your .emacs,
like

(add-hook 'after-init-hook 'server-start)

P.S.: Tip of the day

(add-hook 'server-done-hook
	  (lambda ()
	    (shell-command "screen -r -X select `cat ~/tmp/emacsclient-caller`")))

-- 
CYa,
  Mario



Reply to: