Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions command-log-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ Frequently used non-interesting commands (like cursor movements) should be put h
(defgroup command-log nil
"Customization for the command log.")

(defface command-log-key
'((t (:foreground "cyan")))
"Face for keys in command log."
:group 'command-log)

(defface command-log-command
'((t (:foreground "pale green")))
"Face for commands in command log."
:group 'command-log)

(defcustom command-log-mode-auto-show nil
"Show the command-log window or frame automatically."
:group 'command-log
Expand Down Expand Up @@ -266,11 +276,13 @@ Scrolling up can be accomplished with:
(insert
(propertize
(key-description (this-command-keys))
:time (format-time-string clm/time-string (current-time))))
:time (format-time-string clm/time-string (current-time))
'face 'command-log-key))
(when (>= (current-column) clm/log-command-indentation)
(newline))
(move-to-column clm/log-command-indentation t)
(princ cmd current)
(insert (propertize (format "%s" cmd)
'face 'command-log-command))
(newline)
(setq clm/last-keyboard-command cmd)))
(clm/scroll-buffer-window current))))))
Expand Down