From 3961ba166224f058d79330d3981fd51661cd5473 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 28 Sep 2018 11:49:51 -0400 Subject: [PATCH] Fix command-log-mode not disabling on toggle clm/toggle-command-log-buffer enables global-command-log-mode, but doesn't disable it on second invocation, so we use global-command-log-mode instead. --- core/core-editor.el | 10 ++++++---- modules/config/default/+bindings.el | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index d1827db88..a101d000d 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -268,10 +268,12 @@ savehist file." (advice-add #'undo-tree-save-history :around #'doom*compress-undo-tree-history)) -;; `command-log-mode' -(setq command-log-mode-auto-show t - command-log-mode-open-log-turns-on-mode t - command-log-mode-is-global t) +(def-package! command-log-mode + :commands global-command-log-mode + :config + (setq command-log-mode-auto-show t + command-log-mode-open-log-turns-on-mode nil + command-log-mode-is-global t)) (def-package! expand-region diff --git a/modules/config/default/+bindings.el b/modules/config/default/+bindings.el index 831d96608..5c1ee1f85 100644 --- a/modules/config/default/+bindings.el +++ b/modules/config/default/+bindings.el @@ -660,7 +660,7 @@ :desc "Describe key" :n "k" #'describe-key :desc "Find documentation" :n "K" #'+lookup/documentation :desc "Find library" :n "l" #'find-library - :desc "Command log" :n "L" #'clm/toggle-command-log-buffer + :desc "Command log" :n "L" #'global-command-log-mode :desc "View *Messages*" :n "m" #'view-echo-area-messages :desc "Describe mode" :n "M" #'describe-mode :desc "Toggle profiler" :n "p" #'doom/toggle-profiler