From: steve-humphreys@gmx.com
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: command-log-mode
Date: Mon, 11 Jan 2021 14:19:49 +0100 [thread overview]
Message-ID: <trinity-5ffe9045-6308-4358-9ac7-d1a3461c7c0d-1610371188988@3c-app-mailcom-bs13> (raw)
Has anyone got an idea how to put the command-log window at the bottom
rather than at the side?
Have added a vertical window split by making
clm-open-clogbfr-vertically
I then call it from clm/toggle-command-log-buffer
Yet, the window is still being displayed horizontally.
(defun clm-open-clogbfr-vertically (&optional arg)
"Opens (and creates, if non-existant) a buffer used for logging keyboard commands.
If ARG is non-nil, the existing command log buffer is cleared."
(interactive "P")
(with-current-buffer
(setq clm-command-log-buffer
(get-buffer-create " *command-log*"))
(text-scale-set 1))
(when arg
(with-current-buffer clm-command-log-buffer
(erase-buffer)))
(let ((new-win (split-window-vertically
(- 0 command-log-mode-window-size))))
(set-window-buffer new-win clm-command-log-buffer)
(set-window-dedicated-p new-win t)))
;;;###autoload
(defun clm/toggle-command-log-buffer (&optional arg)
"Toggle the command log showing or not."
(interactive "P")
(when (and command-log-mode-open-log-turns-on-mode
(not command-log-mode))
(if command-log-mode-is-global
(global-command-log-mode)
(command-log-mode)))
(with-current-buffer
(setq clm-command-log-buffer
(get-buffer-create " *command-log*"))
(let ((win (get-buffer-window (current-buffer))))
(if (windowp win)
(clm-close-command-log-buffer)
;; Else open the window
(clm-open-clogbfr-vertically arg)))))
> Sent: Monday, January 11, 2021 at 11:07 PM
> From: "Philip K." <philipk@posteo.net>
> To: steve-humphreys@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: command-log-mode
>
> steve-humphreys@gmx.com writes:
>
> > I am trying to use command-log-mode, but I am unsure how to use it.
> > Have found no instructions on how to install it and call it.
> >
> > The source code is here
> >
> > https://github.com/lewang/command-log-mode
>
> The Commentary section says
>
> ;; To enable, use e.g.:
> ;;
> ;; (require 'command-log-mode)
> ;; (add-hook 'LaTeX-mode-hook 'command-log-mode)
> ;;
> ;; To see the log buffer, call M-x clm/open-command-log-buffer.
>
> So basically, all you have to do is M-x command-log-mode, to enable it
> wherever you need it, and then manually open the log buffer.
>
> --
> Philip K.
>
next reply other threads:[~2021-01-11 13:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-11 13:19 steve-humphreys [this message]
2021-01-11 15:38 ` command-log-mode Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2021-01-11 10:09 command-log-mode steve-humphreys
2021-01-11 10:18 ` command-log-mode Joost Kremers
2021-01-14 9:44 ` command-log-mode Robert Thorpe
2021-01-11 11:07 ` command-log-mode Philip K.
2021-01-11 12:43 ` command-log-mode steve-humphreys
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-5ffe9045-6308-4358-9ac7-d1a3461c7c0d-1610371188988@3c-app-mailcom-bs13 \
--to=steve-humphreys@gmx.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).