zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Oliver Kiddle" <opk@thoth.u-net.com>, <zsh-workers@sunsite.auc.dk>
Subject: RE: New compinstall and bindkey
Date: Tue, 29 Jun 1999 15:26:11 +0400	[thread overview]
Message-ID: <000c01bec222$308cc100$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <37778A3C.EA02FF04@thoth.u-net.com>

>
> Firstly, the new compinstall doesn't seem to work very will when the
> functions have been installed in subdirectories: It refuses to accepy
> /usr/local/share/zsh/functions as the directory containing the
> functions. I don't quite understand the reasoning behind making compinit
> an autoloaded function which is unloaded. I'd prefer to have it in
> /usr/local/share/zsh/functions and not in my fpath. Is it faster as a
> function?
>

The reason I  didn't like sourcing compinit was that I hate to have any
dependencies on local installation place. Making it autoloaded function makes it
invariant:

autoload compinit; compinit

As I finally pointed out, there are other ways. One possibility is to define
parameter (say, COMPINIT) that holds full pathname of compinit (if it was
installed). In this case you could use

[[ -n "$COMPINIT" ]] && source "$COMPINIT"

I don't actualy care which one is used.

> How do I bind a key to insert a new-line without doing an accept-line.
> In the zed function it is done with bindkey "^M" self-insert-unmeta but
> this binds it to return. I was hoping to bind it to Alt-Return.
>

Hmmm ... in command line editing multiline input I can insert new line by
pressing ^V^J.

/andrej


  reply	other threads:[~1999-06-29 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-28 14:44 Oliver Kiddle
1999-06-29 11:26 ` Andrej Borsenkow [this message]
1999-06-29 13:48   ` new menu selection and " Oliver Kiddle
1999-06-29 16:03   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000c01bec222$308cc100$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=opk@thoth.u-net.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).