ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Warning (bytecomp): reference to free variable ‘ergoemacs-modify-transient-maps’ #486

Closed nawordar closed 4 years ago

nawordar commented 4 years ago

When starting emacs a *Compile-Log* buffer appears with the following message:

Warning (bytecomp): reference to free variable ‘ergoemacs-modify-transient-maps’
Warning (bytecomp): assignment to free variable ‘ergoemacs-modify-transient-maps’

I've tried putting (defvar ergoemacs-modify-transient-maps) but it didn't help. My ergomacs config fragment:

(defvar ergoemacs-modify-transient-maps)
(setq ergoemacs-theme nil)
(setq ergoemacs-keyboard-layout "us")
(require 'ergoemacs-mode)
(ergoemacs-mode 1)

The full file is here

Emacs version: 26.3 Ergoemacs version: 20190527.348 from Melpa

nawordar commented 4 years ago

My problem was that I did not know that (require 'package) is not needed when installing using M-x list-packages. All I needed was to remove this line and everything works fine now.