Fix void-variable mouse-wheel-{up,down}-event errors

This commit is contained in:
Henrik Lissner 2019-05-06 16:54:37 -04:00
parent 1d40602c3e
commit c28a018e42
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,6 +27,10 @@
(when (daemonp)
(setq doom-modeline-icon t))
:config
;; Fix an issue where these two variables aren't defined in TTY Emacs on MacOS
(defvar mouse-wheel-down-event nil)
(defvar mouse-wheel-up-event nil)
(add-hook 'doom-modeline-mode-hook #'size-indication-mode) ; filesize in modeline
(add-hook 'doom-modeline-mode-hook #'column-number-mode) ; cursor column in modeline