[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: command-log-mode
From: |
steve-humphreys |
Subject: |
Re: command-log-mode |
Date: |
Mon, 11 Jan 2021 14:19:49 +0100 |
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.
>
- command-log-mode, steve-humphreys, 2021/01/11
- Re: command-log-mode,
steve-humphreys <=