* Re: command-log-mode
@ 2021-01-11 13:19 steve-humphreys
2021-01-11 15:38 ` command-log-mode Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: steve-humphreys @ 2021-01-11 13:19 UTC (permalink / raw)
To: Help Gnu Emacs; +Cc: Help Gnu Emacs
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.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* command-log-mode
@ 2021-01-11 10:09 steve-humphreys
2021-01-11 10:18 ` command-log-mode Joost Kremers
2021-01-11 11:07 ` command-log-mode Philip K.
0 siblings, 2 replies; 7+ messages in thread
From: steve-humphreys @ 2021-01-11 10:09 UTC (permalink / raw)
To: Help Gnu Emacs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: command-log-mode
2021-01-11 10:09 command-log-mode steve-humphreys
@ 2021-01-11 10:18 ` Joost Kremers
2021-01-14 9:44 ` command-log-mode Robert Thorpe
2021-01-11 11:07 ` command-log-mode Philip K.
1 sibling, 1 reply; 7+ messages in thread
From: Joost Kremers @ 2021-01-11 10:18 UTC (permalink / raw)
To: steve-humphreys; +Cc: help-gnu-emacs
On Mon, Jan 11 2021, steve-humphreys@gmx.com wrote:
> 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
Elisp files often have a Commentary section at the top, just below the license.
Sometimes they are uninformative, sometimes they contain all the information you
need to use a package. Here, the latter seems to be the case.
--
Joost Kremers
Life has its moments
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: command-log-mode
2021-01-11 10:18 ` command-log-mode Joost Kremers
@ 2021-01-14 9:44 ` Robert Thorpe
0 siblings, 0 replies; 7+ messages in thread
From: Robert Thorpe @ 2021-01-14 9:44 UTC (permalink / raw)
To: steve-humphreys; +Cc: Joost Kremers, help-gnu-emacs
Joost Kremers <joostkremers@fastmail.fm> writes:
> On Mon, Jan 11 2021, steve-humphreys@gmx.com wrote:
>> 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
>
> Elisp files often have a Commentary section at the top, just below the license.
> Sometimes they are uninformative, sometimes they contain all the information you
> need to use a package. Here, the latter seems to be the case.
Also, you can get a list of installed packages with C-h p. Then you can
navigate to the package you're interested in a press enter. It will
show that commentary from the top of the file.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: command-log-mode
2021-01-11 10:09 command-log-mode steve-humphreys
2021-01-11 10:18 ` command-log-mode Joost Kremers
@ 2021-01-11 11:07 ` Philip K.
2021-01-11 12:43 ` command-log-mode steve-humphreys
1 sibling, 1 reply; 7+ messages in thread
From: Philip K. @ 2021-01-11 11:07 UTC (permalink / raw)
To: steve-humphreys; +Cc: Help Gnu Emacs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: command-log-mode
2021-01-11 11:07 ` command-log-mode Philip K.
@ 2021-01-11 12:43 ` steve-humphreys
0 siblings, 0 replies; 7+ messages in thread
From: steve-humphreys @ 2021-01-11 12:43 UTC (permalink / raw)
To: Philip K.; +Cc: Help Gnu Emacs
Has anyone got an idea how to put the command-log window at the bottom
rather than at the side?
> 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.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-01-14 9:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11 13:19 command-log-mode steve-humphreys
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.