[Top][All Lists]

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

Re: [Circe-help] Cannot set a channel specific prompt

From: Jorgen Schaefer
Subject: Re: [Circe-help] Cannot set a channel specific prompt
Date: Fri, 16 Feb 2007 14:43:52 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> (add-hook 'circe-chat-mode-hook
>           'th-circe-prompt)
> (defun th-circe-prompt ()
>   (set (make-local-variable 'circe-prompt-string)
>        (concat (propertize (concat (buffer-name) ">")
>                            'face 'circe-prompt-face)
>                " ")))

Does it solve the problem for you to use this?

  (lui-set-prompt (concat (propertize ...)))

Circe uses the variable only once to initialize the prompt. You
can change it to whatever you want, whenever you want, at whatever
point you want, by just telling lui about it.

In this case, the hook you propose only solves a specific
situation. Calling lui directly is applicable in more instances.
But the docstring should probably be changed. Will do that once
I'm back from "vacation". Thanks!

        -- Jorgen

((email . "address@hidden") (www . "";)
 (gpg   . "1024D/028AF63C")   (irc . "nick forcer on IRCnet"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]