emacs-for-clojure
emacs-for-clojure copied to clipboard
Warning (initialization): An error occurred while loading ‘/Users/nsadeh/.emacs.d/init.el’:
I followed the instructions on the README and got the following error:
⛔ Warning (initialization): An error occurred while loading ‘/Users/nsadeh/.emacs.d/init.el’:
Symbol's function definition is void: global-linum-mode
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
information: System: MBP 14" November 2023 OS: macOS Sonoma 14.1.2 Emacs 29.1 Date: December 6, 2023
This fixes it: https://www.reddit.com/r/emacs/comments/15trd1p/stuck_on_trying_to_install_emacs_config_on_emacs/?rdt=63681. Should I make a PR? I am not sure this will work for older versions of Emacs.
Hi,
I commented that post on Reddit as I was facing the same issue and found a way to fix it without using the linum.el library, since it is deprecated.
Open .emacs.d/customizations/ui.el
and replace (global-linum-mode)
at line 11 by (global-display-line-numbers-mode 1)
. Then launch emacs, it should work.
That being said, the zip mentioned in the Clojure/Emacs tutorial seems outdated and I wonder if we shouldn't use the master branch of this repo as a config.