Skip to content

Commit

Permalink
remove pre command
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 23, 2024
1 parent b1a062c commit 6f76e9e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions jcs-echobar.el
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
(add-hook 'post-command-hook #'keycast--update t)
(add-hook 'minibuffer-exit-hook #'keycast--minibuffer-exit t)
(advice-add 'keycast--update :after #'jcs-echobar--keycast-update))
(add-hook 'pre-command-hook #'jcs-echobar--pre-command)
(add-hook 'window-size-change-functions #'jcs-echobar--window-resize)
(jcs-echobar--window-resize) ; call it manually once
(setq jcs-echobar--default-function echo-bar-function)
Expand All @@ -83,7 +82,6 @@
(remove-hook 'post-command-hook #'keycast--update)
(remove-hook 'minibuffer-exit-hook #'keycast--minibuffer-exit)
(advice-remove 'keycast--update #'jcs-echobar--keycast-update))
(remove-hook 'pre-command-hook #'jcs-echobar--pre-command)
(remove-hook 'window-size-change-functions #'jcs-echobar--window-resize)
(setq echo-bar-function jcs-echobar--default-function)
(echo-bar-mode -1))
Expand Down Expand Up @@ -116,10 +114,6 @@
;; (@* "Core" )
;;

(defun jcs-echobar--pre-command ()
"Pre command hook."
(message nil)) ; Avoid `echo-bar' mess up window config!

(defvar jcs-echobar--render nil)

(defun jcs-echobar--render-width ()
Expand Down

0 comments on commit 6f76e9e

Please sign in to comment.